diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2023-01-30 15:58:16 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2023-01-30 15:58:16 +0800 |
commit | bb3f84633b01afb0a2f719645f8176f491fb7694 (patch) | |
tree | 1fa30479859b9c39656562e35449bad8feae64c1 /script/provider/provider.lua | |
parent | c69e65f5468a3aff99f1de11ee7c72a0d9f75afe (diff) | |
download | lua-language-server-bb3f84633b01afb0a2f719645f8176f491fb7694.zip |
add command `lua.getConfig`
Diffstat (limited to 'script/provider/provider.lua')
-rw-r--r-- | script/provider/provider.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua index a83ce18e..7f5ca20d 100644 --- a/script/provider/provider.lua +++ b/script/provider/provider.lua @@ -975,6 +975,7 @@ m.register 'workspace/executeCommand' { 'lua.solve', 'lua.jsonToLua', 'lua.setConfig', + 'lua.getConfig', 'lua.autoRequire', }, }, @@ -994,6 +995,9 @@ m.register 'workspace/executeCommand' { elseif command == 'lua.setConfig' then local core = require 'core.command.setConfig' return core(params.arguments) + elseif command == 'lua.getConfig' then + local core = require 'core.command.getConfig' + return core(params.arguments) elseif command == 'lua.autoRequire' then local core = require 'core.command.autoRequire' return core(params.arguments[1]) |