Skip to content

Commit c971f86

Browse files
chore(build): auto-generate schemas
1 parent a35237e commit c971f86

3 files changed

Lines changed: 65 additions & 0 deletions

File tree

after/codesettings-schemas/luau_lsp.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,34 @@
391391
"scope": "window",
392392
"type": "number"
393393
},
394+
"luau-lsp.plugins.enabled": {
395+
"default": false,
396+
"markdownDescription": "Enable source code transformation plugins. Plugins are Luau scripts that can transform source code before type checking.",
397+
"scope": "resource",
398+
"type": "boolean"
399+
},
400+
"luau-lsp.plugins.fileSystem.enabled": {
401+
"default": false,
402+
"markdownDescription": "Allow plugins to read files within the workspace. Only files within the workspace can be accessed for security.",
403+
"scope": "resource",
404+
"type": "boolean"
405+
},
406+
"luau-lsp.plugins.paths": {
407+
"default": [],
408+
"items": {
409+
"type": "string"
410+
},
411+
"markdownDescription": "Paths to Luau plugin scripts. Plugins are executed in order and can transform source code before type checking.",
412+
"scope": "resource",
413+
"type": "array"
414+
},
415+
"luau-lsp.plugins.timeoutMs": {
416+
"default": 5000,
417+
"markdownDescription": "Timeout in milliseconds for plugin execution. If a plugin takes longer than this, it will be terminated.",
418+
"minimum": 100,
419+
"scope": "resource",
420+
"type": "number"
421+
},
394422
"luau-lsp.require.directoryAliases": {
395423
"additionalProperties": {
396424
"type": "string"

after/codesettings-schemas/rust_analyzer.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,14 @@
157157
"default": [],
158158
"markdownDescription": "List of features to activate.\n\nSet this to `\"all\"` to pass `--all-features` to cargo."
159159
},
160+
"rust-analyzer.cargo.metadataExtraArgs": {
161+
"default": [],
162+
"items": {
163+
"type": "string"
164+
},
165+
"markdownDescription": "Extra arguments passed only to `cargo metadata`, not to other cargo invocations.\nUseful for flags like `--config` that `cargo metadata` supports.",
166+
"type": "array"
167+
},
160168
"rust-analyzer.cargo.noDefaultFeatures": {
161169
"default": false,
162170
"markdownDescription": "Whether to pass `--no-default-features` to cargo.",

lua/codesettings/generated/annotations.lua

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16170,6 +16170,27 @@
1617016170
-- ```
1617116171
---@field port number?
1617216172

16173+
---@class lsp.luau_lsp.FileSystem
16174+
-- Allow plugins to read files within the workspace. Only files within the workspace can be accessed for security.
16175+
---@field enabled boolean?
16176+
16177+
---@class lsp.luau_lsp.Plugins
16178+
-- Enable source code transformation plugins. Plugins are Luau scripts that can transform source code before type checking.
16179+
---@field enabled boolean?
16180+
---@field fileSystem lsp.luau_lsp.FileSystem?
16181+
-- Paths to Luau plugin scripts. Plugins are executed in order and can transform source code before type checking.
16182+
--
16183+
-- ```lua
16184+
-- default = {}
16185+
-- ```
16186+
---@field paths string[]?
16187+
-- Timeout in milliseconds for plugin execution. If a plugin takes longer than this, it will be terminated.
16188+
--
16189+
-- ```lua
16190+
-- default = 5000
16191+
-- ```
16192+
---@field timeoutMs number?
16193+
1617316194
---@class lsp.luau_lsp.Require
1617416195
-- A mapping of custom require string prefixes to directory paths. The aliases should include trailing slashes
1617516196
--
@@ -16307,6 +16328,7 @@
1630716328
---@field inlayHints lsp.luau_lsp.InlayHints?
1630816329
---@field platform lsp.luau_lsp.Platform?
1630916330
---@field plugin lsp.luau_lsp.Plugin?
16331+
---@field plugins lsp.luau_lsp.Plugins?
1631016332
---@field require lsp.luau_lsp.Require?
1631116333
---@field server lsp.luau_lsp.Server?
1631216334
---@field signatureHelp lsp.luau_lsp.SignatureHelp?
@@ -20109,6 +20131,13 @@
2010920131
-- default = {}
2011020132
-- ```
2011120133
---@field features "all"|string[]?
20134+
-- Extra arguments passed only to `cargo metadata`, not to other cargo invocations.
20135+
-- Useful for flags like `--config` that `cargo metadata` supports.
20136+
--
20137+
-- ```lua
20138+
-- default = {}
20139+
-- ```
20140+
---@field metadataExtraArgs string[]?
2011220141
-- Whether to pass `--no-default-features` to cargo.
2011320142
---@field noDefaultFeatures boolean?
2011420143
-- Whether to skip fetching dependencies. If set to "true", the analysis is performed

0 commit comments

Comments
 (0)