summaryrefslogtreecommitdiff
path: root/script/client.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-08 16:47:30 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-08 16:47:30 +0800
commit7106bc546af5a6d88941b645412eb4c063c5a912 (patch)
treeae8cec0acd828937167384449d1f7f90b5b6fae6 /script/client.lua
parentf4e4cc0114adba8d199f9f81298a7c15c9576d5c (diff)
downloadlua-language-server-7106bc546af5a6d88941b645412eb4c063c5a912.zip
#409 apply without local setting
Diffstat (limited to 'script/client.lua')
-rw-r--r--script/client.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/script/client.lua b/script/client.lua
index 47fd48e5..00db9fce 100644
--- a/script/client.lua
+++ b/script/client.lua
@@ -105,7 +105,8 @@ end
---@field uri? uri
---@param changes config.change[]
-function m.setConfig(changes)
+---@param updateLocal boolean
+function m.setConfig(changes, updateLocal)
local finalChanges = {}
for _, change in ipairs(changes) do
if change.action == 'add' then
@@ -120,6 +121,9 @@ function m.setConfig(changes)
end
end
end
+ if not updateLocal then
+ return
+ end
if #finalChanges == 0 then
return
end