summaryrefslogtreecommitdiff
path: root/script/provider
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-08-01 15:39:13 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-08-01 15:39:13 +0800
commitc2340047debdfa00c1946a113008f7982f68dcb7 (patch)
tree9d388739cb0809f7fc93f0ed1ff1610d3328e7f8 /script/provider
parentf18a56604200f7ac19a785f6ce52cb7be67979e6 (diff)
downloadlua-language-server-c2340047debdfa00c1946a113008f7982f68dcb7.zip
fix #1418
Diffstat (limited to 'script/provider')
-rw-r--r--script/provider/diagnostic.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/script/provider/diagnostic.lua b/script/provider/diagnostic.lua
index 762b8d50..46ea600f 100644
--- a/script/provider/diagnostic.lua
+++ b/script/provider/diagnostic.lua
@@ -515,6 +515,7 @@ function m.diagnosticsScope(uri, force)
local id = 'diagnosticsScope:' .. scp:getName()
await.close(id)
await.call(function () ---@async
+ await.sleep(0.0)
m.awaitDiagnosticsScope(uri, function (fileUri)
xpcall(m.doDiagnostic, log.error, fileUri, true)
end)