summaryrefslogtreecommitdiff
path: root/script/service
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-12-30 19:46:03 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-12-30 19:46:03 +0800
commit76af92ca93ff4c9bf4b6fc62bbc49481a17ea044 (patch)
treeddd3f3ba07551c9b6ce5be4b74618bd47983c7db /script/service
parentb1c20a1f24cc7e17d446b2ac4e4118c36173dc20 (diff)
downloadlua-language-server-76af92ca93ff4c9bf4b6fc62bbc49481a17ea044.zip
update
Diffstat (limited to 'script/service')
-rw-r--r--script/service/telemetry.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/script/service/telemetry.lua b/script/service/telemetry.lua
index b61e565b..93e10487 100644
--- a/script/service/telemetry.lua
+++ b/script/service/telemetry.lua
@@ -102,7 +102,7 @@ end)
local m = {}
-function m.updateConfig()
+function m.updateConfig(uri)
if config.get(uri, 'Lua.telemetry.enable') ~= nil then
return
end
@@ -151,9 +151,9 @@ function m.updateConfig()
end)
end
-config.watch(function (key)
+config.watch(function (uri, key)
if key == 'Lua.telemetry.enable' then
- m.updateConfig()
+ m.updateConfig(uri)
end
end)