diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-12-30 19:46:03 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-12-30 19:46:03 +0800 |
commit | 76af92ca93ff4c9bf4b6fc62bbc49481a17ea044 (patch) | |
tree | ddd3f3ba07551c9b6ce5be4b74618bd47983c7db /script/service | |
parent | b1c20a1f24cc7e17d446b2ac4e4118c36173dc20 (diff) | |
download | lua-language-server-76af92ca93ff4c9bf4b6fc62bbc49481a17ea044.zip |
update
Diffstat (limited to 'script/service')
-rw-r--r-- | script/service/telemetry.lua | 6 |
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) |