Commit Graph

384 Commits

Author SHA1 Message Date
Dmitriy Vasyura c8fdd1650c Update TextMate grammars from upstream sources (#286560)
* Update TextMate grammars from upstream sources
* Fix integration test on Windows to run TypeScript file directly
* Baseline update
2026-01-08 16:24:04 +00:00
Martin Aeschlimann 7f374a7aba Useless regular-expression character escape (#286069) 2026-01-06 08:45:55 +00:00
Johannes b9b1a72b75 Merge branch 'main' into pr/kortin99/222319 2025-12-16 11:31:46 +01:00
Johannes Rieken ea0a2d0112 Merge branch 'main' into main 2025-12-16 11:24:28 +01:00
Johannes Rieken 43d2cbc9a0 Merge branch 'main' into add-snakecase-snippets 2025-12-15 17:23:42 +01:00
Copilot c580582216 Silence the "Comments are not permitted in JSON." error for emmet snippets.json files (#257878)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2025-07-28 10:21:05 -07:00
Johannes Rieken 2e59a77991 Add support for tool sets (#249448)
* observale map/set

* adds tool sets, let mcp contribute tool set, update commands

* add `languageModelToolSets` contribution point that allows extensions to define set of tools

* only homogenous tool sets hide the tools they contain (that is set and all its tools are from the same source)

* make sure checking/unchecking buckets works

* make it more clear that the action is about tool configuration (not selecting/attaching)

* simplify `IToolSet#tools`

* support `*.toolset.json` files

* one bucket for all MCP servers

* use mcp icon

* use `.toolsets.json` suffix

* [tools config-pick] keep parents, peek sort order

* * add "Configure Tool Sets" actions
* make it `toolsets.jsonc` and register schema etc pp
* fix some tools picker issues

* add tool sets validation

* * tools completions
* Add ToolDataSource.Internal constant

* add missing return

* make tool set a class

* allow a tool set to contain other tool sets

* use dynamic schema for `toolsets.jsonc` language features

* fix tests
2025-05-21 06:54:14 -07:00
Joseph Riddle 507a50ee34 Add snakecase to snippets grammar 2024-12-30 21:05:07 -07:00
Martin Aeschlimann 65cce8f7b6 Merge pull request #235917 from remcohaszing/bun-lock
Mark bun.lock as jsonc
2024-12-12 17:44:23 +01:00
Remco Haszing 494787526e Allow the .ndjson extension for the jsonl language
NDJSON is a specification that is essentially the same thing as JSON
lines. The spec can be found on https://github.com/ndjson/ndjson-spec.

The NDJSON website is down. The project seems pretty much dead. The
status is best described by this comment:
https://github.com/ndjson/ndjson-spec/issues/35#issuecomment-1285673417

However, this doesn’t mean there aren’t any `.ndjson` files out there.
This changes adds `.ndjson` to the list of `jsonl` file extensions.
2024-12-12 10:54:34 +01:00
Remco Haszing 39b0575e39 Mark bun.lock as jsonc
Bun added support for a new lockfile format using the jsonc language. It
uses an unconventional file extension, but it would be nice if VSCode
understands it by default anyway.

See https://github.com/oven-sh/bun/pull/15705
2024-12-12 10:46:25 +01:00
Aiday Marlen Kyzy c0d25ffb56 Performance regression: revert "Ignoring double slashes inside of strings" (#235742)
Revert "onEnter Indentation Rules: Ignoring double slashes inside of strings …"

This reverts commit 21c52a4a3a.
2024-12-10 16:49:07 +01:00
Aiday Marlen Kyzy 21c52a4a3a onEnter Indentation Rules: Ignoring double slashes inside of strings (#235712)
ignoring double slashes inside of strings
2024-12-10 11:02:51 +01:00
Aiday Marlen Kyzy 359ec5270a Add new line comment when pressing Enter from within line comment for languages that use double slash for line comment (#235407)
* add decrease and increase indent patterns for cpp

* adding new line with line comment on next line from within languages that use double slash for line comment
2024-12-06 11:51:50 +01: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
Kortin Zhou d6ae4f6cf3 feat(snippets): add support for kebab-case in snippets tmLanguage syntax 2024-07-21 06:46:57 +08:00
Sandeep Somavarapu 1e0580ec23 Use categories for builtin extensions groups (#202453)
* support grouping of extensions

* remove grouping

* reuse categories parsing

* cleanup

* fix tests
2024-01-14 18:19:29 +01: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
Yash Singh 4ec04f4c25 feat: .vuerc as json file (#153017)
Co-authored-by: Martin Aeschlimann <martinae@microsoft.com>
2023-05-29 21:12:30 +02:00
DoctorKrolic 0adddd8281 Add JSON Lines language definition (#183035)
* Add `JSON Lines` language definition

* Fix ident
2023-05-25 10:02:57 +02:00
Gerrit Birkeland 9ac5f48ff3 Add jsonc registration for TypeDoc config (#157362)
This is supported as of TypeDoc 0.23. Since it is more commonly used than ember-cli, seems reasonable to add it here.
2022-09-26 15:51:23 +02:00
Martin Aeschlimann 083cf01e10 json indent pattern: handle escape characters (#152475) 2022-06-17 14:31:03 +00:00
Martin Aeschlimann 375681e51e json: use default word pattern (#151754) 2022-06-13 14:36:42 +02:00
rebornix cca25256a3 remvoe jupyter(json) 2022-02-15 17:45:09 -08:00
Mateusz Konieczny 4fa31ba157 recognise .geojson as json, fixes #129329 2021-07-25 10:28:36 +02:00
rebornix cf0231eb6e fix #124918. preserve ipynb file type. 2021-06-30 15:15:59 -07:00
Henning Dieterichs feed53b813 Merge branch 'main' into hediet/refactor-language-configuration 2021-05-31 19:40:48 +02:00
Martin Aeschlimann 693677c8a2 babel.config.json language mode should be 'jsonc'. Fixes #124683 2021-05-27 13:33:47 +02:00
Henning Dieterichs a1af8aa651 Refactors calls to languages.setLanguageConfiguration to declarative descriptions in language-configuration.json. This fixes #98621. 2021-05-17 09:12:01 +02:00
rebornix c63564b531 fix #122589 2021-04-30 14:42:10 -07:00
João Moreno c3b556727e fix update-grammars script 2021-02-02 12:30:08 +01:00
João Moreno 03da2de889 add proper yarn.lock files 2021-02-01 14:35:52 +01:00
João Moreno ec805db5ed add repository field to extensions package.json 2021-01-29 15:30:45 +01:00
João Moreno 9a5d14e307 run prettier over extensions json files 2021-01-29 15:19:18 +01:00
João Moreno 3b03189afa Restore extensions in core (#114921)
* bring back grammar extensions

* fix hygiene

* Revert "pull themes from the marketplace"

This reverts commit 0738f76dac.
2021-01-25 17:07:56 +01:00
João Moreno bc7d3c9ea6 remove grammar extensions 2021-01-15 12:35:17 +01:00
Logan Rosen 710da39135 Mark .ember-cli as jsonc instead of json
The .ember-cli file generated by Ember is JSON with Comments (jsonc): https://github.com/ember-cli/ember-cli/blob/master/blueprints/app/files/.ember-cli

I've changed its associated language accordingly because it being the JSON type by default causes red underlines in the generated file.
2020-11-12 22:33:38 -05:00
Alex Ross d6af4893ed Update grammars 2020-11-05 14:53:33 +01:00
ChaseKnowlden e8760a5d6c Fix capitalization of GitHub org 2020-09-17 11:43:03 +02:00
Martin Aeschlimann 4c99db1a05 file extensins: put primary first. For #102100 2020-07-11 17:36:19 +02:00
Matt Bierner 040034f7ae Update colorizer baselines 2020-05-26 16:22:50 -07:00
John Blackbourn b398b7ea14 Treat *.ts.map files as JSON (#98409) 2020-05-26 11:59:28 -07:00
Ilia Pozdnyakov dbdf8bb075 add more json file extensions #95584 2020-04-21 14:45:05 +07:00
Martin Aeschlimann e81eebde0d Minimal support for JSON-LD files. Fixes #95013 2020-04-14 12:13:12 +02:00
Martin Aeschlimann abab0c8548 [json] move jsonValidation declaration for #88835 2020-01-23 11:35:51 +01:00
Miguel Solorio 666fcc0d62 Fix #88418, update number color for color contrast 2020-01-21 10:23:18 -08:00
Alex Ross a0bc43dd73 Update grammars 2019-10-21 11:21:03 +02:00
Martin Aeschlimann eb9fe80de6 when editing c#, typing /* causes */ to be injected. Fixes #43989 2019-10-08 17:39:47 +02:00
Ԝеѕ 32b4eb7359 Add .har extension to JSON language (#77300) 2019-10-07 12:08:52 +02:00
Orta Therox a89b72bf63 Fix hardcoded lower case S issues for JS/TS only for presentation-ish strinngs 2019-09-12 09:58:03 -04:00