Martin Aeschlimann
067cb03d18
[json] add trustedDomains settings ( #287639 )
...
* use trusted schemas
* [json] add trustedDomains settings
2026-01-13 15:31:19 -08:00
Martin Aeschlimann
cee904f80c
remove some anys ( #271651 )
2025-10-16 11:48:38 +02: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
2d0ca04011
support 'CodeActionContext.only' ( #247402 )
2025-04-25 09:10:06 -07:00
Martin Aeschlimann
c64fbf3ddb
add a 'json.validate' command ( #244784 )
2025-03-26 20:39:53 +01:00
Aiday Marlen Kyzy
02ddb145e8
additing translation l10n
2023-09-01 14:10:57 +02:00
Aiday Marlen Kyzy
ab975ebe28
adding also sort and json into the name
2023-08-31 16:02:06 +02: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
Martin Aeschlimann
8dcf90c7d0
Non-standard capitalization of JSON commands ( #175251 )
2023-02-23 16:52:44 +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
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
Johannes
ed9ed45794
Merge branch 'main' into joh/voluminous-lobster
2022-06-10 09:07:30 +02:00
Matt Bierner
f7e12a3a92
Use optional method calls in more places ( #151634 )
...
This replaces code like:
```ts
if (foo.bar) {
foo.bar(cat);
}
```
with:
```ts
foo.bar?.(cat)
```
Which is more concise but has the same meaning
2022-06-09 15:04:28 -07:00
Johannes
0656d21d11
auto-fixed prefer-const violation
2022-06-08 17:49:21 +02:00
Martin Aeschlimann
f1b392ed55
polish names
2022-05-22 20:03:30 +02:00
Martin Aeschlimann
49944b1501
DiagnosticsSupport for json and html
2022-05-22 20:03:30 +02:00
Martin Aeschlimann
aacb387ef1
implement diagnostic pull
2022-05-22 20:03:30 +02:00
Martin Aeschlimann
e783fdc25e
css/html/json update to lsp 8 ( #148715 )
2022-05-19 12:48:53 +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
Johannes Rieken
4a130c40ed
enable @typescript-eslint/member-delimiter-style, https://github.com/microsoft/vscode/issues/140391
2022-02-02 14:35:33 +01:00
Martin Aeschlimann
95a9378519
[json] add 'Clear schema cache' command. Fixes #138524
2021-12-06 16:56:17 +01:00
Martin Aeschlimann
6123d781cb
[json] use uri helpers
2021-11-19 22:27:02 +01:00
Martin Aeschlimann
6651f8ab43
[json] Adapt language status indicator. Fixes #137288
2021-11-18 14:46:59 +01:00
Martin Aeschlimann
9f1e991680
[json] update diagnostics when schema changes. Fixes #137309
2021-11-17 16:14:52 +01:00
Martin Aeschlimann
7ebe6a6054
adopt web extensions to webpack 5
2021-07-08 21:41:03 +02:00
Martin Aeschlimann
81643c948f
HTML, CSS, JSON language servers don't provide the documentFormattingProvider capability. Fixes #122994
2021-05-07 17:03:16 +02:00
Martin Aeschlimann
a22b5d54ad
[json/css/html] adopt lsp 316
2020-12-14 18:18:58 +01:00
Martin Aeschlimann
1c2005331c
[json] use links for $ref, not goto definition ( fixes #101474 )
2020-11-03 22:30:39 +01:00
Cameron Little
7cf15b2d31
Fix crash in LSP servers when initializationOptions are not provided
2020-09-30 09:01:49 +02:00
Rafał Chłodnicki
896dc31762
[json-language-features] Fix json/schemaAssociations parameters documentation
...
The `json/schemaAssociations` documentation is not accurate in stating
that the only supported parameter is an object in `{ pattern: uri }`
format. It also supports the structure defined by `SchemaConfiguration`
interface from "vscode-json-languageservice".
Also updated the server code to match that.
Resolves #106060
2020-09-03 19:57:02 +02:00
Martin Aeschlimann
4c030c46d4
[json] run serverless
2020-06-11 18:32:24 +02:00