diff --git a/after/codesettings-schemas/luau_lsp.json b/after/codesettings-schemas/luau_lsp.json index 7af60b7..ec5e56e 100644 --- a/after/codesettings-schemas/luau_lsp.json +++ b/after/codesettings-schemas/luau_lsp.json @@ -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.", @@ -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", diff --git a/lua/codesettings/generated/annotations.lua b/lua/codesettings/generated/annotations.lua index 1264a03..6725a15 100644 --- a/lua/codesettings/generated/annotations.lua +++ b/lua/codesettings/generated/annotations.lua @@ -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? @@ -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?