summaryrefslogtreecommitdiff
path: root/script/service/telemetry.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-03-09 16:45:39 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-03-09 16:45:39 +0800
commitb9400e027908e61f01a9999af1a6946af575b94d (patch)
tree5b4577a001beb6513ad5cdbb1154c8e90ca652a8 /script/service/telemetry.lua
parent28b3ab129a6c41d74a269bfa159ea15b569dd83c (diff)
downloadlua-language-server-b9400e027908e61f01a9999af1a6946af575b94d.zip
resolve #973 don't show telemetry in non-VSCode
avoid repeated prompts in non-VSCode due to the inability to automatically modify the settings
Diffstat (limited to 'script/service/telemetry.lua')
-rw-r--r--script/service/telemetry.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/script/service/telemetry.lua b/script/service/telemetry.lua
index d975a986..1104865c 100644
--- a/script/service/telemetry.lua
+++ b/script/service/telemetry.lua
@@ -90,7 +90,6 @@ local function pushErrorLog(link)
))
end
-local validMap = {}
local isValid = false
timer.wait(5, function ()
@@ -145,6 +144,9 @@ function m.updateConfig()
if isValid ~= nil then
return
end
+ if not client.getOption 'changeConfiguration' then
+ return
+ end
if m.hasShowedMessage then
return
end