summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--script/core/diagnostics/init.lua4
-rw-r--r--script/provider/provider.lua1
2 files changed, 3 insertions, 2 deletions
diff --git a/script/core/diagnostics/init.lua b/script/core/diagnostics/init.lua
index 5446a7c3..0a04ad91 100644
--- a/script/core/diagnostics/init.lua
+++ b/script/core/diagnostics/init.lua
@@ -70,7 +70,9 @@ return function (uri, response)
return nil
end
- log.debug('do diagnostic @', uri)
+ if TEST then
+ log.debug('do diagnostic @', uri)
+ end
for _, name in ipairs(diagList) do
await.delay()
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index 3ac71d8b..57126bff 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -913,7 +913,6 @@ do
files.watch(function (ev, uri)
if ev == 'update'
or ev == 'updateVisible' then
- await.delay()
await.call(function ()
updateHint(uri)
end)