Commit Graph

38 Commits

Author SHA1 Message Date
Matt Bierner
51a3b2e439 Add dev tools logging of image load errors
For #274199
2025-12-09 11:11:16 -08:00
Matt Bierner
723aa849c9 Convert gulpfiles to modules
Makes a pass through our top level gulpfiles to convert them to modules
2025-11-11 15:28:50 -08:00
Matt Bierner
c47a56c7bc Adopt uuids for generating webview nonces 2025-10-29 13:53:47 -07:00
Matt Bierner
98b069c041 Work towards getting isolated built-in extension compiles
For #271167

This makes it so our built-in extensions can mostly be built using `tsc` on the command line. Previously the extensions were picking up a lot of typing info from the root `node_modules` that meant they weren't truly independent
2025-10-13 11:03:20 -07:00
Matt Bierner
ed71020bfc Convert extension webpack scripts to modules 2025-08-07 17:20:22 -07:00
Matt Bierner
f2513b5ea7 Add commands to quickly switch between svg preview and text
Fixes #245180
2025-03-31 14:36:59 -07:00
Jochen Kühner
d79d9f0319 support svg's in image preview 2025-01-03 09:36:33 +01:00
Logan Ramos
e689b912ba Update telemetry package (#236378) 2024-12-17 20:12:49 +01:00
Robo
9494a89080 chore: add npmrc to extensions folder (#230214) 2024-10-01 12:43:01 +02:00
Matt Bierner
0685b0a619 Revert "Use separate div for image preview transparency grid" (#229082)
This reverts commit 945d4cdda8.

Fixes #229019
2024-09-19 19:51:50 -07:00
Matt Bierner
dcbea4aaaf Merge branch 'main' into fix-226095-transparency-grid-zoom 2024-09-10 16:56:11 -07:00
hj
88d7b97c93 chore: rm unreached ignore items when build extensions. (#227906)
chore: rm unreached ignore items when compiling extensions.
2024-09-09 10:32:51 +00:00
Robo
b5a6aa14a8 feat: switch to npm as default package manager (#226927)
* feat: move from yarn to npm

* chore: skip yarn.lock files

* fix: playwright download

* chore: fix compile and hygiene

* chore: bump vsce@2.17.0

Refs 8b49e9dfdf

* test: update results for bat and sh colorizer tests

* fix: add missing lock files for windows

* fix: switch to legacy-peer-deps

* chore: update markdown-it@14.1.0

Refs 737c95a129

esbuild step in extensions-ci-pr was previously using markdown-it
from root which had userland punycode and was able to compile successfully.

* ci: increase pr timeout for windows integration tests

* chore: fix product build

* build: ignore extension dev dependency for rcedit

* build: fix working directory inside container

* build: fix dependency generation

* npm: update dependencies

* ci: use global npmrc

* ci: update cache

* ci: setup global npmrc for private npm auth

* build: fix extension bundling

* chore: sync npm dependencies

* ci: debug env variables for container

* ci: fix win32 cli pipeline

* build: fix npmrc config usage for build/ and remote/ dirs

* fix: windows build

* fix: container builds

* fix: markdown-language-features tests and bundling

```
[03:58:22] Error: Command failed: /Users/demohan/.nvm/versions/node/v20.15.1/bin/node /Users/demohan/github/vscode/extensions/markdown-language-features/esbuild-notebook.js --outputRoot /Users/demohan/github/vscode/.build/extensions/markdown-language-features
✘ [ERROR] Could not resolve "punycode"

    extensions/markdown-language-features/node_modules/markdown-it/lib/index.js:14:27:
      14 │ var punycode     = require('punycode');
         ╵                            ~~~~~~~~~~

  The package "punycode" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
```

Adds userland package based on beed9aee2c

* fix: container builds for distro

* chore: update yarn occurrences

* fixup! chore: bump vsce@2.17.0

Uses the closest version to `main` branch that does not
include d3cc84cdec
while still having the fix 8b49e9dfdf

* chore: sync npm dependencies

* chore: sync npm dependencies

* chore: sync npm dependencies

* chore: throw error when yarn is used for installation

* chore: add review feedback

* chore: switch exec => run where needed

* chore: npm sync dependencies

* fix: markdown-language-features bundling

```
✘ [ERROR] Could not resolve "punycode"

    extensions/markdown-language-features/node_modules/markdown-it/lib/index.js:14:27:
      14 │ var punycode     = require('punycode');
         ╵                            ~~~~~~~~~~

  The package "punycode" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
```

Adds missing userland package based on markdown-it/markdown-it@beed9ae,
can be removed once we update markdown-it >= 14.1.0

* ci: rename no-yarn-lock-changes.yml

* chore: sync npm dependencies

* ci: restore no-yarn-lock-changes.yml

We can disable it in a separate PR to keep the required
checks happy and also need workflow edit perms.

* chore: sync npm dependencies

* ci: rebuild cache

* ci: fix no-package-lock-changes.yml

* chore: bump distro

* chore: rm yarn.lock files

* chore: rm yarn.lock files without dependencies

* chore: add vscode-selfhost-import-aid to postinstall dirs

* chore: bump distro
2024-09-06 22:18:02 +09:00
Matt Bierner
77e9532099 Fix image preview after image update
Fixes #227447
2024-09-03 12:50:29 -07:00
Anees
945d4cdda8 Use separate div for image preview transparency grid 2024-08-24 02:41:24 +01:00
Logan Ramos
9bea1fc96a Bump telemetry package (#197168) 2023-11-01 20:51:03 +01:00
Logan Ramos
cc98e55794 Fix slow telemetry module (#193607) 2023-09-20 20:14:12 +01:00
Logan Ramos
ecb0c80fc1 Bump extension telemetry module (#191237)
* Bump extension telemetry module

* Fix webpack
2023-08-24 12:53:41 -07:00
Alpha Romer Coma
7ef754c2f6 Fix supported markdown-lint violations in markdown files (#190750)
docs: fix supported markdownlint violations
2023-08-24 08:37:25 +00:00
Raymond Zhao
5be539a588 Bump semver (#187654) 2023-07-12 01:49:45 +02:00
Matt Bierner
0f5502c1a7 Rename settings for media preview video settings (#186231)
For #176418
2023-06-27 00:26:02 +02:00
Fawzi Abdulfattah
46e83a2613 feat: adding optional support for auto playing and looping videos (#184758)
* feat: adding options to support videos looping and auto playing

Signed-off-by: Fawzi Abdulfattah <iifawzie@gmail.com>

* chore: adding on mute to the videos auto play setting's description

Signed-off-by: Fawzi Abdulfattah <iifawzie@gmail.com>

---------

Signed-off-by: Fawzi Abdulfattah <iifawzie@gmail.com>
2023-06-21 17:51:00 +00:00
Anthony Stewart
92d528bbd3 Support copying non-pngs and wait for focus to avoid race conditions (#180322)
* Support copying non-pngs and wait for focus to avoid race conditions

* Remove the temporary canvas element after copying

* Update to place entire canvas creation inside promise.

* Increasing to 5 retries 20ms apart
2023-04-20 18:51:41 +00:00
Matt Bierner
4f5c7b295c Allow copying images from image preview (#180269)
Allow copying image from image preview

Fixes #171616

Lets you cmd+c / right click to copy images from the image preview

Also disables the copy/paste options in the other media previews since they don't currently support copying
2023-04-18 19:19:09 -07:00
Matt Bierner
39187de5d9 Also recognize .oga as an audio extension (#173711)
From #173680
2023-02-08 10:24:47 -08:00
Logan Ramos
8e6bcc9b9e Bump module to new package (#173599) 2023-02-06 12:29:36 -08:00
Matt Bierner
4630d8e4de Remove more implicit activation events from built-in extensions (#172838) 2023-01-30 17:25:56 -08:00
Logan Ramos
8cea434dec Remove unused proposals (#172035) 2023-01-23 19:09:07 +01:00
Logan Ramos
4acf2d9b46 Update the telemetry modules (#170512)
Update the module
2023-01-03 15:10:45 -05:00
Logan Ramos
b1076b41f3 Bump telemetry packages (#169283) 2022-12-15 17:29:10 +01:00
Matt Bierner
804daac1d6 Fix console not being a known symbol in media-preview (#169065) 2022-12-14 16:57:06 -08:00
Matt Bierner
3c5db04316 Use proper function to get image dirname (#168652)
Fixes #168608
2022-12-09 20:45:48 +01:00
Raymond Zhao
62d2aad6a6 Add preventDefault calls, ref #138175 (#168310) 2022-12-07 10:41:21 -08:00
Logan Ramos
73d882bcf7 Update telemetry package (#166292) 2022-11-14 09:30:33 -08:00
Logan Ramos
bf1697d98c Consume proposed telemetry API (#165862)
* Consume proposed telemetry API

* Update webpack
2022-11-08 21:58:28 -05:00
Matt Bierner
10dc1a34b5 Adopt l10n for media-preview (#165525)
For #164438
2022-11-04 10:57:02 -07:00
Matt Bierner
d05d85a78b Move html rewriting for old webviews to (#163367)
The `asWebviewUri` methods was introduced in VS Code 1.38. It's silly that we still force every single webview to pay the cost of trying to rewrite the old style uris we supported in very old versions of VS Code

Instead I've moved this logic into the extension host and disabled it for all extensions that target VS Code 1.60+ or newer. This means it never applies to internal webviews, notebooks, webview views, or custom editors (these public apis were all introduced after the switch to `asWebviewUri`)
2022-10-11 16:08:17 -07:00
Matt Bierner
c2a2ad4f63 Rename image-preview extension to media-preview (#162093)
Fixes #162092

Also removes `aac` from the list of supported audio formats
2022-09-27 21:01:14 -07:00