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
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
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.
* support to dynamically register JSON schema association
* support to dispose schema and association registration
* hook up schema, associations, and documents when reviewing tool input
* 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>
* 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`
* 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
---------
* 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>
* 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>