Commit Graph

256 Commits

Author SHA1 Message Date
Alex Ross
0ac234bbd0 Update grammars (#248013) 2025-05-02 16:29:24 +03:00
Alex Ross
921fd5ab12 Tests 2025-04-22 10:53:30 +02:00
Alex Ross
1a602a166e Fix some missing typescript scopes (#245870) 2025-04-07 12:54:52 +02:00
Alex Ross
673d12b1da Add tests for some new css colorization behavior (#245652)
* Add tests for some new css colorization behavior

* Add some more
2025-04-07 10:30:17 +02:00
Alex Ross
e6b351d8f1 > different color (#245658)
Fixes #244631
2025-04-04 11:43:00 +02:00
Alex Ross
2474d3bffe @property css different color (#245656)
Fixes #244634
2025-04-04 11:40:56 +02:00
Alex Ross
8c8c5b6751 !important different color (#245654)
Fixes #244632
2025-04-04 11:14:43 +02:00
Alex Ross
365173692a Feedback: variables render differently in Insiders (#245650)
Fixes #244579
2025-04-04 11:13:57 +02:00
Alex Ross
93d9c9824b Add highlights rule for character escapes (#245647) 2025-04-04 10:33:44 +02:00
Alex Ross
90dba364dd Feedback: before / after selectors not rendering correctly (#245645)
Fixes #244575
2025-04-04 10:18:32 +02:00
Alex Ross
1abecdf3cf Feedback: universal selectors not rendering with syntax highlighting (#245564)
Fixes #244574
2025-04-03 18:21:11 +02:00
Alex Ross
fe55ba1fa4 Feedback: ID selectors not receiving syntax highlighting (#245561)
Fixes #244568
2025-04-03 18:16:03 +02:00
Alex Ross
19d868bfd3 Regex Tree Sitter: Look around expressions not colored correctly (#245492)
Fixes #244605
2025-04-03 16:44:18 +02:00
Alex Ross
dea304ea91 Tree sitter: A lot of detail gone from RegExp (#245427)
Fixes #244572
2025-04-03 12:08:00 +02:00
Alex Ross
7249efcfae Add tree-sitter for css (#244112)
* Add tree-sitter for css

* Hard code root scopes

* Add some temp logging for test

* Exclude css from module ignore

* Remove log lines
2025-03-20 13:45:47 +01:00
Christof Marti
90dde06fb6 Revert "Add tree-sitter for css (#243988)"
This reverts commit c14e7b4b9b.
2025-03-20 08:32:03 +01:00
Alex Ross
c14e7b4b9b Add tree-sitter for css (#243988)
* Add tree-sitter for css

* Hard code root scopes
2025-03-19 09:55:14 -07:00
Alex Ross
e2eba0acf6 Re-enable regex highlight test (#244014)
* Re-enable regex highlight test

* 🤦‍♀️
2025-03-19 17:21:45 +01:00
Alex Ross
b184dce8db Remove regex test to fix build (#243884)
This is a temporary measure to unblock the build, will re-enable shortly.
2025-03-18 17:41:26 +01:00
Alex Ross
4c3518eafe Injected languages for tree sitter (#243180) 2025-03-18 10:48:27 +01:00
Alex Ross
da2bbdda80 tree-sitter doesn't apply some scopes (part 3) (#243088)
Fixes #241715
2025-03-10 10:17:02 -07:00
Alex Ross
dfcb5f367c Night Owl Light appears much more blue with Tree Sitter highlighting (#242058)
* Night Owl Light appears much more blue with Tree Sitter highlighting
Fixes #241887

* Fix template strings

* Fix tests

* Fix tests
2025-03-05 09:37:10 -08:00
Alex Ross
5ff58539b4 Support targeting multiple scopes in a theme with tree sitter (#241703)
* Support targeting multiple scopes in a theme with tree sitter

* Fix tests

* Respond to PR feedback

* Fix tests
2025-03-05 11:07:56 +00:00
Alex Ross
a267073204 Update grammars (#242296) 2025-02-28 13:20:44 +01:00
Alex Ross
3f1ff35be2 Differences in syntax colorization on file full of errors (#242085)
Fixes #241813
2025-02-26 16:48:17 +01:00
Alex Ross
60634f8690 Make some more tree sitter typescript fixes (#241358)
* Make some more tree sitter typescript fixes
And add a test for https://github.com/microsoft/vscode/issues/241001

* Test should only look at most specific scope, just like is actually done right now.
2025-02-21 11:10:26 +00:00
Alex Ross
c9bdec7f38 Fix font styles and a bunch of missing typescript scopes for tree sitter (#241208)
* Fix font styles and a bunch of missing typescript scopes for tree sitter
Fixes #241001

* Update tests
2025-02-19 15:50:20 +00:00
Alex Ross
6d1f434843 Add boolean and punctuation scopes for typescript with tree sitter (#240983)
* Add boolean and punctuation scopes for typescript with tree sitter
Fixes #240884

* Fix tokenization tests
2025-02-17 11:22:23 +01:00
Alex Ross
44e499ede1 Change tree sitter setting to be per langauge (#240622)
* Change tree sitter setting to be per langauge
Part of #210475

* Fix accidentally unregistering languages
2025-02-13 10:49:27 +00:00
Alex Ross
e2a3691756 Use tree sitter for ini (#240534)
* Use tree sitter for ini
Part of #210475

* Include ini in tree sitter colorization tests

* Remove /r
2025-02-13 08:36:42 +01:00
Alex Ross
09fe3fcbc1 Adopt new Ruby grammar (#235732) 2024-12-11 17:53:04 +01:00
Alex Ross
1c91332da7 Re-adopt new YAML grammar! (#232244)
* Embedded languages syntax highlighting stopped working in 1.92.0
Fixes #224978

* Get embedded grammar
2024-12-10 12:32:57 +01:00
Alex Ross
337cacaafa Revert YAML Grammar (#231096)
Part of #224862
2024-10-11 10:24:35 +02:00
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