summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-21 17:27:52 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-21 17:27:52 +0800
commitbb4b4391dfdb7ee22bd464edd1321429d4906028 (patch)
tree913645c9727b33068274041ac5bb916129810e42 /script
parentf3b880ec7c0db1b7f86650e3d393a7f25da2a99b (diff)
downloadlua-language-server-bb4b4391dfdb7ee22bd464edd1321429d4906028.zip
`checkThirdParty` should use the same mode
Diffstat (limited to 'script')
-rw-r--r--script/library.lua21
1 files changed, 14 insertions, 7 deletions
diff --git a/script/library.lua b/script/library.lua
index 3ea9e9fa..0e65d96c 100644
--- a/script/library.lua
+++ b/script/library.lua
@@ -347,17 +347,24 @@ local function askFor3rd(cfg)
if not result then
return nil
end
- client.setConfig {
- {
- key = 'Lua.workspace.checkThirdParty',
- action = 'set',
- value = false,
- },
- }
if result == yes1 then
apply3rd(cfg, false)
+ client.setConfig({
+ {
+ key = 'Lua.workspace.checkThirdParty',
+ action = 'set',
+ value = false,
+ },
+ }, false)
elseif result == yes2 then
apply3rd(cfg, true)
+ client.setConfig({
+ {
+ key = 'Lua.workspace.checkThirdParty',
+ action = 'set',
+ value = false,
+ },
+ }, true)
end
end