diff options
-rw-r--r-- | package.json | 15 | ||||
-rw-r--r-- | server/build_package.lua | 17 | ||||
-rw-r--r-- | server/src/config.lua | 4 |
3 files changed, 35 insertions, 1 deletions
diff --git a/package.json b/package.json index 732c35cf..2c39bdfa 100644 --- a/package.json +++ b/package.json @@ -256,6 +256,18 @@ "title": "severity", "type": "object" }, + "Lua.plugin.enable": { + "default": false, + "markdownDescription": "%config.plugin.enable%", + "scope": "resource", + "type": "boolean" + }, + "Lua.plugin.path": { + "default": false, + "markdownDescription": "%config.plugin.path%", + "scope": "resource", + "type": "${workspaceRoot}/.vscode/lua/*.lua" + }, "Lua.runtime.path": { "default": [ "?.lua", @@ -283,6 +295,9 @@ "type": "string" }, "Lua.workspace.ignoreDir": { + "default": [ + "./.vscode/" + ], "items": { "type": "string" }, diff --git a/server/build_package.lua b/server/build_package.lua index 02d1c82b..63074cfa 100644 --- a/server/build_package.lua +++ b/server/build_package.lua @@ -99,7 +99,10 @@ local package = { items = { type = 'string', }, - markdownDescription = "%config.workspace.ignoreDir%" + markdownDescription = "%config.workspace.ignoreDir%", + default = { + "./.vscode/", + }, }, ["Lua.workspace.ignoreSubmodules"] = { scope = "resource", @@ -142,6 +145,18 @@ local package = { default = true, markdownDescription = "%config.completion.callSnippet%" }, + ["Lua.plugin.enable"] = { + scope = "resource", + type = "boolean", + default = false, + markdownDescription = "%config.plugin.enable%" + }, + ["Lua.plugin.path"] = { + scope = "resource", + type = "${workspaceRoot}/.vscode/lua/*.lua", + default = false, + markdownDescription = "%config.plugin.path%" + }, } }, grammars = { diff --git a/server/src/config.lua b/server/src/config.lua index a71cb191..774af499 100644 --- a/server/src/config.lua +++ b/server/src/config.lua @@ -123,6 +123,10 @@ local ConfigTemplate = { enable = {true, Boolean}, callSnippet = {true, Boolean}, }, + plugin = { + enable = {false, Boolean}, + path = {'${workspaceRoot}/.vscode/lua/', String}, + }, } local OtherTemplate = { |