diff options
author | sumneko <sumneko@hotmail.com> | 2019-04-16 17:12:40 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-04-16 17:12:40 +0800 |
commit | ca69ac28173674eb80f822161ed6379e6070d272 (patch) | |
tree | 2b4136ddf7be3e1ddb682d2860f2df460b2f8c7c /server/src/method/workspace | |
parent | 4cb9c12ca12e3ce6e254897cc1a72f651bd9fdf8 (diff) | |
download | lua-language-server-ca69ac28173674eb80f822161ed6379e6070d272.zip |
根据文件关联来搜索lua文件
Diffstat (limited to 'server/src/method/workspace')
-rw-r--r-- | server/src/method/workspace/didChangeConfiguration.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/server/src/method/workspace/didChangeConfiguration.lua b/server/src/method/workspace/didChangeConfiguration.lua index 732d28dd..d5008954 100644 --- a/server/src/method/workspace/didChangeConfiguration.lua +++ b/server/src/method/workspace/didChangeConfiguration.lua @@ -9,8 +9,14 @@ return function (lsp) scopeUri = uri, section = 'Lua', }, + { + scopeUri = uri, + section = 'files.associations', + } }, }, function (configs) - lsp:onUpdateConfig(configs[1]) + lsp:onUpdateConfig(configs[1], { + associations = configs[2], + }) end) end |