diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-07-09 16:54:10 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-07-09 16:54:10 +0800 |
commit | 2e76da9f371bccd35e3da80b3a2af60a703f627c (patch) | |
tree | e7240d9da3ae60af576c51c68a978c54516024a2 /script/provider/provider.lua | |
parent | e32f17eb3cb4b98960f1f048bae654e43cf95984 (diff) | |
download | lua-language-server-2e76da9f371bccd35e3da80b3a2af60a703f627c.zip |
improve `auto require`
Diffstat (limited to 'script/provider/provider.lua')
-rw-r--r-- | script/provider/provider.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua index 208ff2c7..ad00a5b5 100644 --- a/script/provider/provider.lua +++ b/script/provider/provider.lua @@ -689,6 +689,9 @@ proto.on('workspace/executeCommand', function (params) elseif command == 'lua.setConfig' then local core = require 'core.command.setConfig' return core(params.arguments[1]) + elseif command == 'lua.autoRequire' then + local core = require 'core.command.autoRequire' + return core(params.arguments[1]) end end) |