Commit Graph

223 Commits

Author SHA1 Message Date
Robo
9494a89080 chore: add npmrc to extensions folder (#230214) 2024-10-01 12:43:01 +02:00
Alex Ross
ef44e67783 Improve unusable slowness of tree sitter syntax highlighting (#229951)
* Improve unusable slowness of tree sitter syntax highlighting
Part of #229935

* Improve improvement as discussed with Martin

* Fix score

* Fix test error
2024-09-30 15:18:32 +02:00
Alex Ross
e67b1982e1 Update grammars (#229924) 2024-09-27 10:27:11 +02:00
Alex Ross
955c13c0b9 [] in sticky scroll is not highlighted correctly when tree sitter is enabled (#229849)
Fixes #229556
2024-09-26 19:24:23 +02:00
Alex Ross
d3c7f32e17 Ternary ?: aren't colors correctly (#229719)
* Ternary ?: aren't colors correctly
and improve some other token scopes
Fixes #229555

* Update tests
2024-09-25 17:11:31 +02:00
Alex Ross
764afff92a this isn't being highlighted (#229724)
* `this` isn't being highlighted
Fixes #229554

* Update tests
2024-09-25 17:08:29 +02:00
Alex Ross
cedad6e8fc Support targetting multiple scopes in a theme (#229717)
and fix font style
Fixes #229557
Fixes #229553
2024-09-25 16:18:15 +02:00
Alex Ross
ef76a382d5 Colorization tests for tree sitter (#229517)
* Colorization tests for tree sitter
Part of #210475

* Fix tests

* Actually fix tests

* Fix line endings

* Register preferTreeSitter setting
2024-09-24 11:36:05 +02:00
Raymond Zhao
38adfa0956 Revert "Colorization tests for tree sitter" (#229444)
Revert "Colorization tests for tree sitter (#229376)"

This reverts commit ccefcfa4fa.
2024-09-23 15:07:42 -07:00
Alex Ross
ccefcfa4fa Colorization tests for tree sitter (#229376)
* Colorization tests for tree sitter
Part of #210475

* Fix tests

* Actually fix tests

* Fix line endings
2024-09-23 21:31:57 +02:00
Alex Ross
e4ffea4865 Add test for issue with new YAML grammar (#228265)
Part of #224862
2024-09-12 14:32:06 +02: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
Alex Ross
9473445f7d Update grammars (#224167) 2024-07-29 02:33:03 -07:00
Alex Ross
c2df206074 Update YAML grammar (#221244) 2024-07-09 10:20:26 +02:00
Alex Ross
2b9ebd6897 Update less grammar (#221128) 2024-07-08 15:04:25 +02:00
Alex Ross
9255a27d88 Try out new YAML grammar (#219833)
* Try out new YAML grammar
Part of #180523

* Pull in other/plain update
2024-07-03 12:13:46 +02:00
Robo
5216c04428 chore: update to electron 29 (#209818)
* chore: update electron@29.1.0

* chore: update typings to 20.x

* chore: bump electron@29.1.5

* ci: fix crash in compiling extensions-ci

* chore: disable .d.ts check for build/

$ ../node_modules/.bin/tsc -p tsconfig.build.json
node_modules/@types/chokidar/index.d.ts:21:14 - error TS2420: Class 'import("/Users/demohan/github/vscode/build/node_modules/@types/chokidar/index").FSWatcher' incorrectly implements interface 'import("fs").FSWatcher'.
  Type 'FSWatcher' is missing the following properties from type 'FSWatcher': ref, unref

21 export class FSWatcher extends EventEmitter implements fs.FSWatcher {
                ~~~~~~~~~

node_modules/chokidar/types/index.d.ts:8:14 - error TS2420: Class 'import("/Users/demohan/github/vscode/build/node_modules/chokidar/types/index").FSWatcher' incorrectly implements interface 'import("fs").FSWatcher'.
  Type 'FSWatcher' is missing the following properties from type 'FSWatcher': ref, unref

8 export class FSWatcher extends EventEmitter implements fs.FSWatcher {
               ~~~~~~~~~

Found 2 errors in 2 files.

Errors  Files
     1  node_modules/@types/chokidar/index.d.ts:21
     1  node_modules/chokidar/types/index.d.ts:8

Refs a0f9e09f64

* chore: update core types

* temp: fix layer validation

* chore: update nodejs checksums

* ci: use latest v20 LTS for missing node-gyp

Refs eacec5f490

* ci: define LIBCPP_HARDENING_MODE

* ci: fix crash in vscode-web-min-ci

* chore: update rpm deps-list

* chore: bump tree-sitter-typescript@0.20.5

* chore: bump electron@29.3.0

* chore: bump electron@29.3.1

* chore: update rpm deps-list for x86_64

* ci: disable io_uring UV backend on linux

* ci: disable io_uring backend for oss as well

* chore: update typings to 20.x

* ci: add TODO for io_uring workaround

* chore: bump distro

* chore: update preinstall node version checks

* chore: update @types/gulp

Refs https://github.com/microsoft/vscode/issues/212442

* ci: disable io_uring in more test suites
2024-05-11 01:20:28 +09:00
Alex Ross
5c213a1e84 Update grammars (#211439) 2024-04-26 04:52:52 -07:00
Alex Ross
b557947e50 Update grammars (#209932) 2024-04-09 12:20:39 +02:00
Alex Ross
6285faddc6 Update shellscript grammar (#207828) 2024-03-15 12:52:46 +01:00
Alex Ross
35d97bc7e4 Update grammars (#203521) 2024-01-26 13:06:22 +01:00
Alex Ross
6d9541fff6 Try out a new Go grammar (#202070) 2024-01-09 14:11:19 +01:00
Alex Ross
3c86ede5f5 Update grammars (#200730) 2023-12-13 13:08:01 +01:00
Alex Ross
b0d60e8e2e Add the new Less grammar back in (#200043)
This reverts commit 95c05bf57b.
2023-12-05 15:17:02 +01:00
Alex Ross
95c05bf57b Revert new Less grammar in preparation for release (#199017)
* Revert "merge theme rules for css/less/scss variables (#197657)"

This reverts commit cc08867677.

* Revert "Adopt Better-Less grammar (#197557)"

This reverts commit ce40e7ce61.
2023-11-24 14:11:23 +01:00
Martin Aeschlimann
cc08867677 merge theme rules for css/less/scss variables (#197657) 2023-11-17 11:40:21 +01:00
Alex Ross
ce40e7ce61 Adopt Better-Less grammar (#197557)
Consider adopting a new Less grammar
Fixes #171239
2023-11-07 17:36:06 +01:00
Noritada Kobayashi
c9b23f1fb0 Fix an issue that \xN8 and \xN9 in Rust strings are incorrectly colored (#196198)
* Update Rust grammar

* Add a test for #166781

* Make color themes in the test data for #166781 up-to-date

---------

Co-authored-by: Alex Ross <alros@microsoft.com>
2023-10-30 11:30:48 +00:00
Alex Ross
fa22e9ac36 Update grammars (#196839)
Co-authored-by: Martin Aeschlimann <martinae@microsoft.com>
2023-10-27 09:35:46 -07:00
Alex Ross
50b3c04d0a Revert C# grammar to last-known-good commit (#195144)
* Revert C# grammar back to last-known-good commit
Part of #195098

* Also add missing test_cshtml.json test result

* Add new test for issue
2023-10-09 12:33:40 +02:00
Christof Marti
01edf51e0f Merge dev container configs (microsoft/vscode-remote-release#8994) 2023-10-03 12:26:07 +02:00
Alex Ross
ed1a8da946 Rename Perl6 to Raku (#192882)
Fixes #168319
2023-09-12 16:20:16 +02:00
Martin Aeschlimann
07fcfc80c3 update to latest jsonc-parser (#192872) 2023-09-12 14:58:01 +02:00
Alex Ross
cc4775f55a Update themes to accommodate C# grammar change (#192854)
See https://github.com/dotnet/csharp-tmLanguage/issues/290
2023-09-12 12:37:49 +02:00
Alex Ross
6021e01795 Update grammars (#192749) 2023-09-11 11:38:45 +02: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
Alex Ross
f605341af6 Syntax highlighting incorrect in vscode.python for the word 'file' (#191111)
* Syntax highlighting incorrect in vscode.python for the word 'file'
Fixes #188190

* Update colorization test
2023-08-23 22:17:23 +01:00
Robo
ea490e5545 chore: update to Electron 25 (#188268)
* chore: update electron@25.3.0

* ci: update NodeTool version

* chore: update @types/node

* add more common types to layers checker

* chore: update debian dependencies

* chore: update rpm dependencies

* fix: use legacy dns result order of Node.js

* ci: remove deprecated always-auth npm config

Refs npm/cli@72a7eeb

* chore: update deb and rpm dependencies

* chore: update armhf rpm dependencies

* chore: update x64 debian dependencies

* chore: update x64 rpm dependencies

* chore: update electron@25.3.1

* chore: update electron@25.4.0

* chore: bump distro

* chore: bump distro

---------

Co-authored-by: Benjamin Pasero <benjamin.pasero@microsoft.com>
2023-08-07 21:46:27 +09:00
Matt Bierner
665aa8a131 Update markdown grammar (#189420) 2023-08-02 06:47:09 -07:00
Alex Ross
5f9fc780c2 Add snippets as a language (#185017)
* Add snippets as a language

* Snippets -> Code Snippets

* Add tests

* json.snippets -> json.comments.snippets
2023-07-28 09:21:56 -07:00
Rickey K. Liang
2ff3c9a7e7 Revert Python docstring color (#184938)
Revert b4368691e9

all color themes: treat comment docstrings as comments too (#182162)
2023-07-10 14:48:51 +02:00
Alex Ross
53dcdf3ee8 Update grammars (#184151)
* Update grammars

* Update grammar tests
2023-06-02 13:54:16 +02:00
David Dossett
4d0b34bf48 Rename new default theme files (#183001)
* Rename new default theme files

* Update tests
2023-05-22 08:27:24 -07:00
Gabriel Staples
b4368691e9 all color themes: treat comment docstrings as comments too (#182162)
* monokai-color-theme.json: treat Python comment string blocks

...as comments too

* Update *all* themes to consider Python block string comments as comments

	modified:   extensions/theme-abyss/themes/abyss-color-theme.json
	modified:   extensions/theme-defaults/themes/dark_vs.json
	modified:   extensions/theme-defaults/themes/hc_black.json
	modified:   extensions/theme-defaults/themes/hc_light.json
	modified:   extensions/theme-defaults/themes/light_vs.json
	modified:   extensions/theme-kimbie-dark/themes/kimbie-dark-color-theme.json
	modified:   extensions/theme-monokai-dimmed/themes/dimmed-monokai-color-theme.json
	modified:   extensions/theme-monokai/themes/monokai-color-theme.json
	modified:   extensions/theme-quietlight/themes/quietlight-color-theme.json
	modified:   extensions/theme-red/themes/Red-color-theme.json
	modified:   extensions/theme-solarized-dark/themes/solarized-dark-color-theme.json
	modified:   extensions/theme-solarized-light/themes/solarized-light-color-theme.json
	modified:   extensions/theme-tomorrow-night-blue/themes/tomorrow-night-blue-color-theme.json

* Update all changes to use "string.quoted.docstring"

...instead of "string.quoted.docstring.multi.python", per
@aeschli's request here:
https://github.com/microsoft/vscode/pull/182162#issuecomment-1545296640

This way the comment formatting applies to *all* language quoted
docstrings, instead of just to Python.

* bring back python colorize tests

---------

Co-authored-by: Martin Aeschlimann <martinae@microsoft.com>
2023-05-15 14:38:43 +02:00
Alex Ross
a68448fcb4 Update grammars (#181143) 2023-04-28 17:43:01 +02:00
Alex Ross
0e8b1c8e09 Confusing Bash/Shell syntax highlighting (#179775)
Fixes #179749
2023-04-12 14:33:55 +01:00
Alex Ross
d77e53a2b3 Update shellscript grammar (#179758) 2023-04-12 13:39:51 +01:00
Alex Ross
6ac83c7c7d Update grammars (#178508)
* Update grammars

* Update tests
2023-03-29 11:38:06 +02:00
Alex Ross
24483e964e Update shellscript grammar (#177087) 2023-03-14 06:50:36 -07:00
Alex Ross
782ea94050 Update shellscript grammar (#176978) 2023-03-13 09:40:43 -07:00