Commit Graph

261 Commits

Author SHA1 Message Date
Ladislau Szomoru 4d7c56ee82
Engineering - Add GitHub action for pull requests (#254056)
* Test - handle running tests as part of a GitHub action

* Add GitHub action files
2025-07-04 08:21:56 +00:00
Alex Ross ba42f2d6e7
Treesitter-refactoring (#249608)
* wip

* Refactoring TokenizationTextModelPart

* treeSitterTokensPart1

* fix casing

* fix casing 2

* wip models

* progress

* Take care of some of the boring refactor changes (#249429)

* Implements TreeSitterLibraryService

* progress

* more progress

* Removes befores

* Take care of some of the boring refactor changes

* Settable observable

* Get things running

* Fix tree not updated when event files (#249544)

* Fix tree not updated when event files

* Update on Theme change

* Implements visibleLineRanges

* File renames and initial tree handling

* Fixes enter indentation bug

* Get tree sitter tokenization tests passing again

* Get colorize tests running again, minus injected regex test

* Fix monaco editor checks

* More standalone editor fixes

* Fix hygiene

* Fix TestTextModel

* Fix more tests

---------

Co-authored-by: Henning Dieterichs <hdieterichs@microsoft.com>
2025-05-23 16:30:38 +02:00
Ely Ronnen 6209ba20b4
Update log tmLanguage from vscode-logfile-highlighter 3.4.1 (#249046)
* update log tmLanguage from vscode-logfile-highlighter 3.4.1

* fix colorize tests for log

* Run update grammar script

---------

Co-authored-by: Alex Ross <38270282+alexr00@users.noreply.github.com>
2025-05-21 07:36:20 +00:00
Randy Lai 43996d7422
Update upstream repo for R syntax (#248880)
* Update upstream repo for R syntax

* Update cgmanifest and grammar

---------

Co-authored-by: Alex Ross <38270282+alexr00@users.noreply.github.com>
2025-05-15 10:04:36 +00:00
Robo 12326f9906
chore: update to Electron 35 (#245423)
* chore: bump electron@35.0.1

* chore: update types/node@22.x

* chore: update web types for node v22.x

* chore: bump electron@35.1.2

* chore: update node.js build

* chore: update app.dock usage

Refs 71f3ff6bf2

* chore: bump electron@35.1.4

* chore: bump electron@35.1.5

* ci: bump sysroot to glibc 2.28 and gcc 10.5.0

* ci: enable timeout for smoketests

* chore: bump min glibcxx to 3.4.26 for server

* Revert "ci: enable timeout for smoketests"

This reverts commit afb637e85d.

* chore: update debian dependencies

* fix: workaround npm.ps1 argument parsing with powershell

* chore: update rpm dependencies

* test: partially revert changes from 242535

* test: remove redudant keybinding dispatch for selectTab

* test: fix test failure from running configured tasks

* test: focus settings editor for preferences.test.ts

* node - adopt compile cache (#246835)

* node - adopt compile cache

* adopt for utility process

* tweaks

* log state of compilation cache

* Revert "log state of compilation cache"

This reverts commit f3840387a583013834762e2c44f6e8424929297f.

* Revert "node - adopt compile cache (#246835)"

This reverts commit 673a00cab66c9bac87f3cd27b80efa41c80150f1.

* chore: update builds

* chore: bump electron@35.2.0

* chore: bump electron@35.2.1

* chore: bump electron@35.2.2

---------

Co-authored-by: Benjamin Pasero <benjamin.pasero@microsoft.com>
2025-05-09 19:03:36 +09:00
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