Skip to content

Commit 073611e

Browse files
chore(build): auto-generate schemas
1 parent cd40f14 commit 073611e

2 files changed

Lines changed: 49 additions & 0 deletions

File tree

after/codesettings-schemas/luau_lsp.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,24 @@
5656
"scope": "resource",
5757
"type": "boolean"
5858
},
59+
"luau-lsp.completion.anonymousAutofilledFunction.addTabstopForParameters": {
60+
"default": true,
61+
"markdownDescription": "Whether to add snippet tabstops on each parameter name in the generated anonymous function snippet, allowing quick navigation and editing",
62+
"scope": "resource",
63+
"type": "boolean"
64+
},
65+
"luau-lsp.completion.anonymousAutofilledFunction.addTypeAnnotations": {
66+
"default": true,
67+
"markdownDescription": "Whether to include type annotations in the generated anonymous function snippet",
68+
"scope": "resource",
69+
"type": "boolean"
70+
},
71+
"luau-lsp.completion.anonymousAutofilledFunction.enabled": {
72+
"default": true,
73+
"markdownDescription": "Whether to show the auto-generated anonymous function completion item when autocompleting callback arguments",
74+
"scope": "resource",
75+
"type": "boolean"
76+
},
5977
"luau-lsp.completion.autocompleteEnd": {
6078
"default": false,
6179
"markdownDescription": "Automatically insert an `end` when opening a block",
@@ -155,8 +173,16 @@
155173
"scope": "resource",
156174
"type": "boolean"
157175
},
176+
"luau-lsp.completion.imports.useConst": {
177+
"default": false,
178+
"markdownDescription": "Whether to use `const` instead of `local` for auto-imported requires and services",
179+
"scope": "resource",
180+
"type": "boolean"
181+
},
158182
"luau-lsp.completion.showAnonymousAutofilledFunction": {
159183
"default": true,
184+
"deprecationMessage": "Deprecated: Please use luau-lsp.completion.anonymousAutofilledFunction.enabled instead.",
185+
"markdownDeprecationMessage": "**Deprecated**: Please use `#luau-lsp.completion.anonymousAutofilledFunction.enabled#` instead.",
160186
"markdownDescription": "Whether to show the auto-generated anonymous function completion item when autocompleting callback arguments",
161187
"scope": "resource",
162188
"type": "boolean"

lua/codesettings/generated/annotations.lua

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16192,6 +16192,26 @@
1619216192
-- ```
1619316193
---@field vectorType string?
1619416194

16195+
---@class lsp.luau_lsp.AnonymousAutofilledFunction
16196+
-- Whether to add snippet tabstops on each parameter name in the generated anonymous function snippet, allowing quick navigation and editing
16197+
--
16198+
-- ```lua
16199+
-- default = true
16200+
-- ```
16201+
---@field addTabstopForParameters boolean?
16202+
-- Whether to include type annotations in the generated anonymous function snippet
16203+
--
16204+
-- ```lua
16205+
-- default = true
16206+
-- ```
16207+
---@field addTypeAnnotations boolean?
16208+
-- Whether to show the auto-generated anonymous function completion item when autocompleting callback arguments
16209+
--
16210+
-- ```lua
16211+
-- default = true
16212+
-- ```
16213+
---@field enabled boolean?
16214+
1619516215
---@class lsp.luau_lsp.StringRequires
1619616216
-- Whether to use string requires when auto-importing requires. Only checked if `#luau-lsp.platform.type#` is `roblox`
1619716217
---@field enabled boolean?
@@ -16242,6 +16262,8 @@
1624216262
-- default = true
1624316263
-- ```
1624416264
---@field suggestServices boolean?
16265+
-- Whether to use `const` instead of `local` for auto-imported requires and services
16266+
---@field useConst boolean?
1624516267

1624616268
---@class lsp.luau_lsp.Completion
1624716269
-- Add parentheses after completing a function call
@@ -16256,6 +16278,7 @@
1625616278
-- default = true
1625716279
-- ```
1625816280
---@field addTabstopAfterParentheses boolean?
16281+
---@field anonymousAutofilledFunction lsp.luau_lsp.AnonymousAutofilledFunction?
1625916282
-- Automatically insert an `end` when opening a block
1626016283
---@field autocompleteEnd boolean?
1626116284
-- Enables the fragment autocomplete system for performance improvements

0 commit comments

Comments
 (0)