docs: Validate JSON snippets (settings, keymap, tasks, etc) (#40043)

Closes #ISSUE

Release Notes:

- N/A *or* Added/Fixed/Improved ...
This commit is contained in:
Ben Kunkle
2025-10-12 00:19:57 -04:00
committed by GitHub
parent deef58bef7
commit abe1fd5e16
74 changed files with 849 additions and 640 deletions
+5 -5
View File
@@ -9,7 +9,7 @@ Svelte support is available through the [Svelte extension](https://github.com/ze
You can modify how certain styles, such as directives and modifiers, appear in attributes:
```json
```json [settings]
"syntax": {
// Styling for directives (e.g., `class:foo` or `on:click`) (the `on` or `class` part of the attribute).
"attribute.function": {
@@ -26,7 +26,7 @@ You can modify how certain styles, such as directives and modifiers, appear in a
When inlay hints is enabled in Zed, to make the language server send them back, Zed sets the following initialization options:
```json
```json [settings]
"inlayHints": {
"parameterNames": {
"enabled": "all",
@@ -53,16 +53,16 @@ When inlay hints is enabled in Zed, to make the language server send them back,
To override these settings, use the following:
```json
```json [settings]
"lsp": {
"svelte-language-server": {
"initialization_options": {
"configuration": {
"typescript": {
......
// ......
},
"javascript": {
......
// ......
}
}
}