Commit Graph

119 Commits

Author SHA1 Message Date
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 https://github.com/microsoft/vscode-vsce/commit/8b49e9dfdf909ad3af2b9ec9c825f5b501f6d75e

* 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 https://github.com/markdown-it/markdown-it/commit/737c95a12976357df99652e4b51d831cac4a75aa

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 https://github.com/markdown-it/markdown-it/commit/beed9aee2c1b44819afc25d485e86a6c699b6ef0

* 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 https://github.com/microsoft/vscode-vsce/commit/d3cc84cdec99b8e9f24be63d1a2a54abe908f68b
while still having the fix https://github.com/microsoft/vscode-vsce/commit/8b49e9dfdf909ad3af2b9ec9c825f5b501f6d75e

* 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
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
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
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
Alex Ross 8ca37ee70f Update shellscript grammar (#176491) 2023-03-08 11:18:43 +01:00
Alex Ross 71f59872f3 Update shellscript grammar (#176241) 2023-03-06 17:29:54 +01:00
Alex Ross cf4acb8050 Update grammars (#175350) 2023-02-24 17:22:41 +01:00
David Dossett a987fee52e Use solid foreground colors in v2 themes (#173844) 2023-02-08 11:46:07 -08:00
Johan Walles f8c3f89468 Unfreeze Git Commit Message grammar II (#173195)
* Unfreeze Git Commit Message grammar II

Before this change, the upstream for the VSCode Git grammar was dead.
Also, the test setup for that project has been EOL since 2014, so even
just running the tests was difficult.

The replacement grammar, unlike the current grammar:
* Has a vscode-tmgrammar-test test suite that is runnable and passing
  and that will run in CI for any PRs (in the upstream project)
* Has diff highlighting for Swedish as well as English (#133888)
* Highlights touched files both in Swedish and in English

Fixes #133888
Fixes #168847

Ref: <https://github.com/walles/git-commit-message-plus>

And for the record, I was the one setting up the new Git Commit Message
project. And it was fun!

* Remedy review feedback

Retain the line-too-long subject line highlighting. Improved to
highlight only the too-long part, but same idea still.

Special case English language file operations keywords and retain the
previous classification of those. But fallback to op-and-filename
classification when that fails (like it will for Swedish git for
example).

* Update colorize test result

* Update script and cgmanifest

---------

Co-authored-by: Alex Ross <alros@microsoft.com>
2023-02-07 13:40:16 +01:00
Alex Ross 90c3ebe980 Update shellscript grammar to get fix (#173574) 2023-02-06 07:14:56 -08:00
Alex Ross 7b369be6af Get latest shellscript grammar and update tests 2023-02-06 12:32:44 +01:00
Alex Ross c3a17a3ebf Revert shellscript grammar change and add more tests 2023-02-06 12:32:44 +01:00
Alex Ross 166b8e2d90 Update grammars (#172807) 2023-01-30 06:27:20 -08:00
Alexander Fadeev 82305d3a31 Makefile tests for else ifeq|ifneq|... syntax (#170888) 2023-01-12 13:33:38 +01:00
Alex Ross fcb4dd3b18 Try out new shellscript grammar! (#169118)
Part of #77675
2022-12-14 12:52:31 +01:00
David Dossett 9f43a4ffda Add experimental default dark/light v2 themes (#167104)
* Add experimental default dark/light themes

* Update themes and name

* Add colorizer test results

* Update accent color

* Fix status bar no folder background issue

* Fix tree indent strokes

* Update lighter layer

* Fix breadcrumbs

* Update accent

* Update light lights and dark links

* Update colorizer test
2022-12-05 11:41:50 -08:00
Alex Ross fb2837b03f Update grammars (#167938) 2022-12-02 16:42:11 +01:00