Skip to content

Commit 87f703a

Browse files
chore(build): auto-generate vimdoc, schemas and annotations
1 parent 9cc9425 commit 87f703a

File tree

3 files changed

+21
-26
lines changed

3 files changed

+21
-26
lines changed

schemas/ruff_lsp.json

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,22 @@
4747
},
4848
"ruff.configuration": {
4949
"default": null,
50-
"markdownDescription": "Path to a `ruff.toml` or `pyproject.toml` file to use for configuration. By default, Ruff will discover configuration for each project from the filesystem, mirroring the behavior of the Ruff CLI.\n\n**This setting is used only by the native server.**",
50+
"markdownDescription": "Configuration overrides for Ruff. See [the documentation](https://docs.astral.sh/ruff/editors/settings/#configuration) for more details.\n\n**This setting is used only by the native server.**",
51+
"oneOf": [
52+
{
53+
"markdownDescription": "Path to a `ruff.toml` or `pyproject.toml` file to use for configuration.",
54+
"type": "string"
55+
},
56+
{
57+
"markdownDescription": "Inline JSON configuration for Ruff settings (e.g., `{ \"line-length\": 100 }`). *Added in Ruff 0.9.8.*",
58+
"type": "object"
59+
}
60+
],
5161
"scope": "window",
52-
"type": "string"
62+
"type": [
63+
"string",
64+
"object"
65+
]
5366
},
5467
"ruff.configurationPreference": {
5568
"default": "editorFirst",

schemas/ts_ls.json

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@
481481
},
482482
"javascript.updateImportsOnPaste.enabled": {
483483
"default": true,
484-
"markdownDescription": "Enable updating imports when pasting code. Requires TypeScript 5.7+.\n\nBy default this shows a option to update imports after pasting. You can use the `#editor.pasteAs.preferences#` setting to update imports automatically when pasting: `\"editor.pasteAs.preferences\": [ \"text.updateImports.jsts\" ]`.",
484+
"markdownDescription": "Automatically update imports when pasting code. Requires TypeScript 5.6+.",
485485
"scope": "window",
486486
"type": "boolean"
487487
},
@@ -584,15 +584,6 @@
584584
"scope": "window",
585585
"type": "boolean"
586586
},
587-
"typescript.experimental.expandableHover": {
588-
"default": false,
589-
"description": "Enable expanding/contracting the hover to reveal more/less information from the TS server.",
590-
"scope": "window",
591-
"tags": [
592-
"experimental"
593-
],
594-
"type": "boolean"
595-
},
596587
"typescript.format.enable": {
597588
"default": true,
598589
"description": "Enable/disable default TypeScript formatter.",
@@ -1344,7 +1335,7 @@
13441335
},
13451336
"typescript.updateImportsOnPaste.enabled": {
13461337
"default": true,
1347-
"markdownDescription": "Enable updating imports when pasting code. Requires TypeScript 5.7+.\n\nBy default this shows a option to update imports after pasting. You can use the `#editor.pasteAs.preferences#` setting to update imports automatically when pasting: `\"editor.pasteAs.preferences\": [ \"text.updateImports.jsts\" ]`.",
1338+
"markdownDescription": "Automatically update imports when pasting code. Requires TypeScript 5.6+.",
13481339
"scope": "window",
13491340
"type": "boolean"
13501341
},

types/lsp.lua

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12971,10 +12971,10 @@
1297112971
-- ```
1297212972
---@field args string[]
1297312973
---@field codeAction _.lspconfig.settings.ruff_lsp.CodeAction
12974-
-- Path to a `ruff.toml` or `pyproject.toml` file to use for configuration. By default, Ruff will discover configuration for each project from the filesystem, mirroring the behavior of the Ruff CLI.
12974+
-- Configuration overrides for Ruff. See [the documentation](https://docs.astral.sh/ruff/editors/settings/#configuration) for more details.
1297512975
--
1297612976
-- **This setting is used only by the native server.**
12977-
---@field configuration string
12977+
---@field configuration string|table
1297812978
-- The preferred method of resolving configuration in the editor with local configuration from `.toml` files.
1297912979
--
1298012980
-- **This setting is used only by the native server.**
@@ -16749,9 +16749,7 @@
1674916749
---@field enabled "prompt" | "always" | "never"
1675016750

1675116751
---@class _.lspconfig.settings.ts_ls.UpdateImportsOnPaste
16752-
-- Enable updating imports when pasting code. Requires TypeScript 5.7+.
16753-
--
16754-
-- By default this shows a option to update imports after pasting. You can use the `#editor.pasteAs.preferences#` setting to update imports automatically when pasting: `"editor.pasteAs.preferences": [ "text.updateImports.jsts" ]`.
16752+
-- Automatically update imports when pasting code. Requires TypeScript 5.6+.
1675516753
--
1675616754
-- ```lua
1675716755
-- default = true
@@ -16827,10 +16825,6 @@
1682716825
-- ```
1682816826
---@field npmIsInstalled boolean
1682916827

16830-
---@class _.lspconfig.settings.ts_ls.Experimental
16831-
-- Enable expanding/contracting the hover to reveal more/less information from the TS server.
16832-
---@field expandableHover boolean
16833-
1683416828
---@class _.lspconfig.settings.ts_ls.Format
1683516829
-- Enable/disable default TypeScript formatter.
1683616830
--
@@ -17298,9 +17292,7 @@
1729817292
---@field enabled "prompt" | "always" | "never"
1729917293

1730017294
---@class _.lspconfig.settings.ts_ls.UpdateImportsOnPaste
17301-
-- Enable updating imports when pasting code. Requires TypeScript 5.7+.
17302-
--
17303-
-- By default this shows a option to update imports after pasting. You can use the `#editor.pasteAs.preferences#` setting to update imports automatically when pasting: `"editor.pasteAs.preferences": [ "text.updateImports.jsts" ]`.
17295+
-- Automatically update imports when pasting code. Requires TypeScript 5.6+.
1730417296
--
1730517297
-- ```lua
1730617298
-- default = true
@@ -17341,7 +17333,6 @@
1734117333
---@field disableAutomaticTypeAcquisition boolean
1734217334
-- Enables prompting of users to use the TypeScript version configured in the workspace for Intellisense.
1734317335
---@field enablePromptUseWorkspaceTsdk boolean
17344-
---@field experimental _.lspconfig.settings.ts_ls.Experimental
1734517336
---@field format _.lspconfig.settings.ts_ls.Format
1734617337
---@field implementationsCodeLens _.lspconfig.settings.ts_ls.ImplementationsCodeLens
1734717338
---@field inlayHints _.lspconfig.settings.ts_ls.InlayHints

0 commit comments

Comments
 (0)