diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-07-15 21:03:35 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-07-15 21:03:35 +0800 |
commit | 3ed6ac9ef23c26371bd3ccb694e45ed3a99105b3 (patch) | |
tree | aec8e232ca084bb8224bd8e0971600c6644fcbde | |
parent | 48cd25965a936f24d1466e720db125e9d2a177e5 (diff) | |
download | lua-language-server-3ed6ac9ef23c26371bd3ccb694e45ed3a99105b3.zip |
merge `lua.config` request
-rw-r--r-- | script/client.lua | 10 |
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') |