Commit Graph

136 Commits

Author SHA1 Message Date
Martin Aeschlimann
cee904f80c remove some anys (#271651) 2025-10-16 11:48:38 +02:00
Matt Bierner
98b069c041 Work towards getting isolated built-in extension compiles
For #271167

This makes it so our built-in extensions can mostly be built using `tsc` on the command line. Previously the extensions were picking up a lot of typing info from the root `node_modules` that meant they weren't truly independent
2025-10-13 11:03:20 -07:00
Matt Bierner
360c9fd134 Add lint rule for as any and bulk ignore all existing breaks
For #269213

This adds a new eslint rule for `as any` and `<any>({... })`. We'd like to remove almost all of these, however right now the first goal is to prevent them in new code. That's why with this first PR I simply add `eslint-disable` comments for all breaks

Trying to get this change in soon after branching off for release to hopefully minimize disruption during debt week work
2025-10-02 23:38:33 -07:00
Martin Aeschlimann
f52be6a9d7 Disable loading schemas from http/s in untrusted workspaces (#265176) 2025-09-04 15:56:18 +00:00
Martin Aeschlimann
30cfae0d78 use www.schemastore 2025-07-10 18:16:09 +02:00
Martin Aeschlimann
389c5dd015 Merge pull request #244934 from pedrofrazaopacheco/240654-json-wrong-encoding-of-json-schema-url
Fixes microsoft/vscode#240654: Avoid encoding reserved chars in JSON schema URL
2025-04-16 08:50:26 +02:00
Pedro Pacheco
eae2f57127 Fix #240654: Avoid encoding reserved chars in JSON schema URL
Use skipEncoding in uri.toString(true) to prevent percent‑encoding of
characters like ":", "&" and "=" when building the URI.
This ensures the JSON schema URL remains valid.
2025-03-27 17:55:49 +00:00
Martin Aeschlimann
c64fbf3ddb add a 'json.validate' command (#244784) 2025-03-26 20:39:53 +01:00
Johannes Rieken
36ae860bec editable tool input (#244108)
* support to dynamically register JSON schema association
* support to dispose schema and association registration
* hook up schema, associations, and documents when reviewing tool input
2025-03-20 12:59:32 +01:00
Benjamin Pasero
f909b15f53 status - consistent casing for language entries (#242466)
* status - consistent casing for language entries

* more
2025-03-03 15:36:07 +01:00
Martin Aeschlimann
22a35bc9c4 [json] jsonValidation isnt working in multi extension host setup (#235845) 2024-12-11 18:20:10 +01:00
Martin Aeschlimann
fc6d94b806 [css/json/html] adopt latest lsp, update to module: node16 (#230371)
* adopt latest language-server/client

* update package-locks

* transpiler to support Node16
2024-10-03 13:49:56 +02:00
Matt Bierner
51fa4d0172 Fix more type assertions (#230156)
* Fix more type assertions

For #211878

* Fix type error
2024-09-30 14:17:06 -07:00
Martin Aeschlimann
3be49eccc5 Use fs provider for loading schemas (#221136)
* use file system provider for schemas

* fix getSchemaContent

* update

* update

* polish

* feedback

---------

Co-authored-by: Sandeep Somavarapu <sasomava@microsoft.com>
2024-07-09 14:56:04 +02:00
Martin Aeschlimann
a28cbc207a css/json/html web: adopt LanguageClient API change (#218060) 2024-06-25 16:26:48 +02:00
Peng Lyu
c1b0fbbe22 remove console.log (#208474) 2024-03-22 22:56:32 +01:00
Martin Aeschlimann
45db12eeb2 JSON: filter schema error diagnostics (#207577) 2024-03-13 13:57:08 +01:00
Martin Aeschlimann
8aca9a5331 JSON Language Server output channel appears twice (#206877) 2024-03-05 10:01:55 +01:00
RedCMD
212e24f4db Enable json language support for code-snippets files (#204090)
* Enable json language support for `code-snippets` files

* fix

* snippets as a known language to the json language server

---------

Co-authored-by: Martin Aeschlimann <martinae@microsoft.com>
2024-02-05 15:56:16 +01:00
RedCMD
eee4b5fc50 Contribute to json language server with a custom language. (#198583)
* Contribute to json language server with a custom language.

* Add `snippets` to `"activationEvents"`

* Remove hardcoded `snippets` from `documentSettings`

* Fix wrong variable in `!isEqualSet()`

* Use `extensions.allAcrossExtensionHosts` instead of `extensions.all`

* enable `"enabledApiProposals"` for `extensions.allAcrossExtensionHosts`

* Fix error: `Property 'allAcrossExtensionHosts' does not exist on type 'typeof extensions'`

* Remove `snippets`
2024-01-30 11:10:23 +00:00
Martin Aeschlimann
851b39876e [json] don't use md5 (#201971) 2024-01-08 21:50:59 +01:00
Aiday Marlen Kyzy
7069433804 cleaning the code 2023-08-31 15:34:10 +02:00
Aiday Marlen Kyzy
06fdc0a633 unsure how to register the provider 2023-08-31 15:10:14 +02:00
Aiday Marlen Kyzy
fffb813460 adding code 2023-08-31 11:19:33 +02:00
Aiday Marlen Kyzy
3ea4d66a5b changing to use code action instead of setting 2023-08-30 18:04:52 +02:00
Martin Aeschlimann
69b2435e14 set a user agent when attempting to retrieve $schema JSON Schemas (#190726) 2023-08-21 12:14:11 +02:00
Aiday Marlen Kyzy
9c184b6007 Sort JSONC files on save (#188480)
* adding the initial code for sorting on save setting

* adding code, it is working, but how to get the text editor options

* cleaning the code

* making the callback synchronous, why does waitUntil not work

* removed unwated edit

* previously the check on is text edit instance was throwing an error, now checking manually that it is working

* chaning the return type of `getOptionsForDocument` to udnefined by default

* Convert to TextEdit instances

---------
2023-08-02 03:24:03 -07:00
Martin Aeschlimann
2ea2c80d63 [json] schemas in workspace settings also apply to external files (#178010) 2023-03-22 14:57:41 +01:00
Martin Aeschlimann
07d120e10a schema URI not resolving in workspace file (#175320)
schema URI  not resolve in workspace file
2023-02-24 12:33:59 +01:00
Martin Aeschlimann
8dcf90c7d0 Non-standard capitalization of JSON commands (#175251) 2023-02-23 16:52:44 +01:00
Martin Aeschlimann
400fde0524 relative schema path not resolved properly (#175185) 2023-02-23 00:01:20 +01:00
Aiday Marlen Kyzy
eee87af252 Adding the server and client code to the JSON language features extensions to enable JSONC sorting in VS Code (#174352)
* temporarily changing the funcion onFromat to be able to trigger the sorting on real examples

* adding the DocumentSortingRequest

* accesssing directly the text edits from the request

* added code in order to provide the link between the json sorting capabiliites and vscode

* adapting to the new api output of the sort function

* instead of using await use then inside of the command that registers

* textEditor replaces window.activeTextEditor

* adding changes from review

* update service

* use SortOptions

---------

Co-authored-by: Martin Aeschlimann <martinae@microsoft.com>
2023-02-17 19:49:05 +01:00
Martin Aeschlimann
911f119120 generalize limit indicator and use for color decorators (#173730)
* generalize limit indicator and use for color decorators

* remove updateDebounceInfo max
2023-02-08 07:43:29 +01:00
Martin Aeschlimann
bd9ac7a089 Fix JSON schema configuration in multi root workspaces (#173169)
[json] add folderUri to SchemaAssociation and schema setting
2023-02-02 13:36:41 -08:00
Martin Aeschlimann
b27ee6b7b5 [html/css/json] pass the location of the localization bundle to the server (#168111)
pass the location of the localization bundle to the server
2022-12-05 14:49:27 -08:00
Logan Ramos
bf1697d98c Consume proposed telemetry API (#165862)
* Consume proposed telemetry API

* Update webpack
2022-11-08 21:58:28 -05:00
Martin Aeschlimann
afac9524b6 [css/json/html] move to l10n (#165725)
[css/json/html] move to l10n (for #164438)
2022-11-08 07:32:38 -08:00
David Dossett
2da60fd58b Update quick pick placeholders and/or remove titles (#165267) 2022-11-02 15:43:18 -07:00
Martin Aeschlimann
c83eff40dd Remove too many folding regions notification (#163854)
* Remove too many folding regions notification

* remove duplicate folding limit item for JSON/JSONC

* polish

* fix test
2022-10-17 14:42:02 -07:00
Aiday Marlen Kyzy
47a1f80c65 Adding keepLines feature to the settings (#154790)
* Adding the keepLines feature into the settings so the user can format while keeping the original line positions in json documents

* update service

* update dependencies

Co-authored-by: Martin Aeschlimann <martinae@microsoft.com>
2022-07-12 09:59:33 +02:00
Martin Aeschlimann
b3cc787d78 [json] use language indicator for folding limit warnings (#153104)
* reduce number of json notifications

* use language indicator for folding limit warnings. For #142496

* add comment for resultLimit + 1
2022-06-24 15:01:02 +02:00
Martin Aeschlimann
e783fdc25e css/html/json update to lsp 8 (#148715) 2022-05-19 12:48:53 +02:00
Martin Aeschlimann
caa463191f add telemetry event comments and owner (#149070) 2022-05-17 15:20:02 +02:00
Martin Aeschlimann
8f5b743a0b [json] Allow "json.validate.enable": false in settings / disable JSON validation or error checking. Fixes #114775 2022-04-12 15:33:25 +02:00
Martin Aeschlimann
3698a0b247 polish json schema language info 2022-04-04 16:17:49 +02:00
Martin Aeschlimann
27729fb7c6 JSON language status isn't "pin friendly". Fixes #146561 2022-04-04 11:30:41 +02:00
João Moreno
b390ac286b OK 2022-03-21 09:30:09 +01:00
Martin Aeschlimann
4274ec05b8 [html][json] fix some missing dispose registrations 2022-03-02 11:57:20 +01:00
Johannes Rieken
4a130c40ed enable @typescript-eslint/member-delimiter-style, https://github.com/microsoft/vscode/issues/140391 2022-02-02 14:35:33 +01:00
Logan Ramos
c047af40b2 Fix compilation 2022-01-19 16:18:14 -05:00