diff options
author | sumneko <sumneko@hotmail.com> | 2019-05-08 16:51:55 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-05-08 16:51:55 +0800 |
commit | c5cdfa647574c38916c61930acf56469372d139f (patch) | |
tree | 2f047e9f9edb1891c187c460742715c3ddc29c90 /server/src/method | |
parent | 2bdcabc48557e6b968df7ae88cafe8d318c44a1d (diff) | |
download | lua-language-server-c5cdfa647574c38916c61930acf56469372d139f.zip |
#28 排除目录也使用 files.exclude
Diffstat (limited to 'server/src/method')
-rw-r--r-- | server/src/method/initialized.lua | 5 | ||||
-rw-r--r-- | server/src/method/workspace/didChangeConfiguration.lua | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/server/src/method/initialized.lua b/server/src/method/initialized.lua index 05abffd7..47b924d0 100644 --- a/server/src/method/initialized.lua +++ b/server/src/method/initialized.lua @@ -51,11 +51,16 @@ return function (lsp) { scopeUri = uri, section = 'files.associations', + }, + { + scopeUri = uri, + section = 'files.exclude', } }, }, function (configs) lsp:onUpdateConfig(configs[1], { associations = configs[2], + exclude = configs[3], }) initAfterConfig(lsp, firstScope) end) diff --git a/server/src/method/workspace/didChangeConfiguration.lua b/server/src/method/workspace/didChangeConfiguration.lua index d5008954..ecaa9182 100644 --- a/server/src/method/workspace/didChangeConfiguration.lua +++ b/server/src/method/workspace/didChangeConfiguration.lua @@ -12,11 +12,16 @@ return function (lsp) { scopeUri = uri, section = 'files.associations', + }, + { + scopeUri = uri, + section = 'files.exclude', } }, }, function (configs) lsp:onUpdateConfig(configs[1], { associations = configs[2], + exclude = configs[3], }) end) end |