diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-03-09 16:45:39 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-03-09 16:45:39 +0800 |
commit | b9400e027908e61f01a9999af1a6946af575b94d (patch) | |
tree | 5b4577a001beb6513ad5cdbb1154c8e90ca652a8 /script/service/telemetry.lua | |
parent | 28b3ab129a6c41d74a269bfa159ea15b569dd83c (diff) | |
download | lua-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.lua | 4 |
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 |