Commit Graph

22 Commits

Author SHA1 Message Date
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
f52be6a9d7 Disable loading schemas from http/s in untrusted workspaces (#265176) 2025-09-04 15:56:18 +00:00
Martin Aeschlimann
b5e4f89462 json.schemas improve setting description (#196071)
json.schemas improve setting description. For #196049)
2023-10-20 10:00:32 +02:00
Aiday Marlen Kyzy
3ea4d66a5b changing to use code action instead of setting 2023-08-30 18:04:52 +02:00
Martin Aeschlimann
829932cb62 improve json schema settings descriptions (#190735) 2023-08-21 12:13:51 +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
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
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
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
95a9378519 [json] add 'Clear schema cache' command. Fixes #138524 2021-12-06 16:56:17 +01:00
gregvanl
975115a2cb Setting descriptions typos and formatting 2021-03-25 10:17:31 -07:00
Martin Aeschlimann
1a6d7f3118 [json] performance warning message can't be ignored. Fixes #105988 2020-11-27 17:24:02 +01:00
Martin Aeschlimann
aa98d29af9 typo in JSON fileMatch hover text. FIxes #101408 2020-06-30 20:40:00 +02:00
Martin Aeschlimann
8a97cbb47d [json] Add setting to disable downloading JSON schemas. Fixes #96083 2020-05-06 18:58:59 +02:00
Martin Aeschlimann
1a55cd072a improve fileMatch descriptions for exclusion patterns 2020-03-04 09:56:33 +01:00
Martin Aeschlimann
669d0ab44e [json] make result limit configurable. Fixes #84259 2019-12-04 15:41:02 +01:00
Pine Wu
649f448ef9 Fix #62146, Fix #62149 2018-11-02 12:15:34 -07:00
Literallie
fe4ce0b9d4 Add retry action to JSON status bar icon 2018-10-11 00:27:58 +02:00
Martin Aeschlimann
2eb31c7170 fix javadoc formatter setting description 2018-07-30 17:03:13 +02:00
Martin Aeschlimann
6b8e4c6e9c [folding] remove experimental flag for json/html 2018-03-20 15:29:48 +01:00
Martin Aeschlimann
5b23587f08 [json] split json extension (for #45900) 2018-03-17 15:47:58 +01:00