diff --git a/schemas/denols.json b/schemas/denols.json index 9614b03..5477e1f 100644 --- a/schemas/denols.json +++ b/schemas/denols.json @@ -86,6 +86,20 @@ "scope": "window", "type": "string" }, + "deno.disablePaths": { + "default": [], + "examples": [ + [ + "./worker" + ] + ], + "items": { + "type": "string" + }, + "markdownDescription": "Disables the Deno Language Server for specific paths. This will leave the built in TypeScript/JavaScript language server enabled for those paths. Takes priority over `deno.enablePaths`.\n\n**Not recommended to be enabled in user settings.**", + "scope": "resource", + "type": "array" + }, "deno.documentPreloadLimit": { "default": 1000, "examples": [ diff --git a/types/lsp.lua b/types/lsp.lua index 44b2947..a10b673 100644 --- a/types/lsp.lua +++ b/types/lsp.lua @@ -285,6 +285,14 @@ -- default = -- ``` ---@field config string +-- Disables the Deno Language Server for specific paths. This will leave the built in TypeScript/JavaScript language server enabled for those paths. Takes priority over `deno.enablePaths`. +-- +-- **Not recommended to be enabled in user settings.** +-- +-- ```lua +-- default = {} +-- ``` +---@field disablePaths string[] -- Maximum number of file system entries to traverse when finding scripts to preload into TypeScript on startup. Set this to 0 to disable document preloading. -- -- ```lua