diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-07-08 16:47:30 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-07-08 16:47:30 +0800 |
commit | 7106bc546af5a6d88941b645412eb4c063c5a912 (patch) | |
tree | ae8cec0acd828937167384449d1f7f90b5b6fae6 /script/client.lua | |
parent | f4e4cc0114adba8d199f9f81298a7c15c9576d5c (diff) | |
download | lua-language-server-7106bc546af5a6d88941b645412eb4c063c5a912.zip |
#409 apply without local setting
Diffstat (limited to 'script/client.lua')
-rw-r--r-- | script/client.lua | 6 |
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 |