summaryrefslogtreecommitdiff
path: root/script/service
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-07 11:28:39 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-07 11:28:39 +0800
commit3a6a45486dd8bf5ee3548c631ebf8a5da711fb7a (patch)
treea93d6259ad2dd90dc05a21a089b8a494937c7682 /script/service
parent336c0b712babf2f5a0dec2c2f27963d5e568eff2 (diff)
downloadlua-language-server-3a6a45486dd8bf5ee3548c631ebf8a5da711fb7a.zip
cleanup
Diffstat (limited to 'script/service')
-rw-r--r--script/service/telemetry.lua26
1 files changed, 16 insertions, 10 deletions
diff --git a/script/service/telemetry.lua b/script/service/telemetry.lua
index c45320c7..11c872ce 100644
--- a/script/service/telemetry.lua
+++ b/script/service/telemetry.lua
@@ -120,17 +120,23 @@ function m.updateConfig()
return
end
if item.title == enableTitle then
- client.setConfig('Lua.telemetry.enable'
- , 'set'
- , true
- , true
- )
+ client.setConfig {
+ {
+ key = 'Lua.telemetry.enable',
+ action = 'set',
+ value = true,
+ isGlobal = true,
+ }
+ }
elseif item.title == disableTitle then
- client.setConfig('Lua.telemetry.enable'
- , 'set'
- , false
- , true
- )
+ client.setConfig {
+ {
+ key = 'Lua.telemetry.enable',
+ action = 'set',
+ value = false,
+ isGlobal = true,
+ }
+ }
end
end)
end