summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-15 21:03:35 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-15 21:03:35 +0800
commit3ed6ac9ef23c26371bd3ccb694e45ed3a99105b3 (patch)
treeaec8e232ca084bb8224bd8e0971600c6644fcbde
parent48cd25965a936f24d1466e720db125e9d2a177e5 (diff)
downloadlua-language-server-3ed6ac9ef23c26371bd3ccb694e45ed3a99105b3.zip
merge `lua.config` request
-rw-r--r--script/client.lua10
1 files changed, 4 insertions, 6 deletions
diff --git a/script/client.lua b/script/client.lua
index 0778c08d..12020fe5 100644
--- a/script/client.lua
+++ b/script/client.lua
@@ -129,12 +129,10 @@ function m.setConfig(changes, onlyMemory)
return
end
if m.getOption 'changeConfiguration' then
- for _, change in ipairs(finalChanges) do
- proto.notify('$/command', {
- command = 'lua.config',
- data = change,
- })
- end
+ proto.notify('$/command', {
+ command = 'lua.config',
+ data = finalChanges,
+ })
else
local messages = {}
messages[1] = lang.script('WINDOW_CLIENT_NOT_SUPPORT_CONFIG')