summaryrefslogtreecommitdiff
path: root/script/method/workspace/didChangeConfiguration.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-11-20 21:55:41 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-11-20 21:55:41 +0800
commitc63b2e404d8d2bb984afe3678a5ba2b2836380cc (patch)
treea70661effacc7a29caa8d49583673ac4be2faaf5 /script/method/workspace/didChangeConfiguration.lua
parent85c5a4210e4447422cd5677369ae740ed65725a0 (diff)
downloadlua-language-server-c63b2e404d8d2bb984afe3678a5ba2b2836380cc.zip
remove the old version
Diffstat (limited to 'script/method/workspace/didChangeConfiguration.lua')
-rw-r--r--script/method/workspace/didChangeConfiguration.lua30
1 files changed, 0 insertions, 30 deletions
diff --git a/script/method/workspace/didChangeConfiguration.lua b/script/method/workspace/didChangeConfiguration.lua
deleted file mode 100644
index eca61ebc..00000000
--- a/script/method/workspace/didChangeConfiguration.lua
+++ /dev/null
@@ -1,30 +0,0 @@
-local rpc = require 'rpc'
-
---- @param lsp LSP
-return function (lsp)
- for _, ws in ipairs(lsp.workspaces) do
- local uri = ws.uri
- -- 请求配置
- rpc:request('workspace/configuration', {
- items = {
- {
- scopeUri = uri,
- section = 'Lua',
- },
- {
- scopeUri = uri,
- section = 'files.associations',
- },
- {
- scopeUri = uri,
- section = 'files.exclude',
- }
- },
- }, function (configs)
- lsp:onUpdateConfig(configs[1], {
- associations = configs[2],
- exclude = configs[3],
- })
- end)
- end
-end