Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions after/codesettings-schemas/luau_lsp.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "A Language Server Client for Luau",
"properties": {
"luau-lsp.analyzeLuaFiles": {
"default": true,
"markdownDescription": "Whether to analyze standard `.lua` files. If disabled, only `.luau` files will be analyzed. Note: You may also need to configure `\"files.associations\": {\"*.lua\": \"lua\"}` in your settings to restore standard Lua syntax highlighting and behavior for `.lua` files.",
"scope": "window",
"type": "boolean"
},
"luau-lsp.autocompleteEnd": {
"default": false,
"deprecationMessage": "Deprecated: Please use luau-lsp.completion.autocompleteEnd instead.",
Expand Down Expand Up @@ -138,12 +144,14 @@
"enum": [
"auto",
"alwaysRelative",
"alwaysAbsolute"
"alwaysAbsolute",
"nearestAbsolute"
],
"enumDescriptions": [
"Automatically compute the style of require to use based on heuristics",
"Always require the module relative to the current file",
"Always require the module absolute based on root"
"Always require the module absolute based on root",
"Require the module relative to the nearest fixed variable that resolves to a known ancestor instance. Only applicable in Roblox projects"
],
"markdownDescription": "The style of requires when autocompleted",
"scope": "resource",
Expand Down
8 changes: 7 additions & 1 deletion lua/codesettings/generated/annotations.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16436,7 +16436,7 @@
-- ```lua
-- default = "auto"
-- ```
---@field requireStyle "auto" | "alwaysRelative" | "alwaysAbsolute"?
---@field requireStyle "auto" | "alwaysRelative" | "alwaysAbsolute" | "nearestAbsolute"?
-- Whether services and requires should be separated by an empty line
---@field separateGroupsWithLine boolean?
---@field stringRequires lsp.luau_lsp.StringRequires?
Expand Down Expand Up @@ -16812,6 +16812,12 @@
---@field robloxSecurityLevel "None" | "LocalUserSecurity" | "PluginSecurity" | "RobloxScriptSecurity"?

---@class lsp.luau_lsp.Luau-lsp
-- Whether to analyze standard `.lua` files. If disabled, only `.luau` files will be analyzed. Note: You may also need to configure `"files.associations": {"*.lua": "lua"}` in your settings to restore standard Lua syntax highlighting and behavior for `.lua` files.
--
-- ```lua
-- default = true
-- ```
---@field analyzeLuaFiles boolean?
-- Automatically insert an `end` when opening a block
---@field autocompleteEnd boolean?
---@field bytecode lsp.luau_lsp.Bytecode?
Expand Down
Loading