diff options
author | sumneko <sumneko@hotmail.com> | 2022-01-23 02:29:34 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2022-01-23 02:29:34 +0800 |
commit | fecdb2af1ceba45021486d1e28d8e11f490d2b36 (patch) | |
tree | ce8b09f67ecd34637987951a2111bca1e81d5dc7 /script/provider | |
parent | 2ee33dade7af1129ec792e69c51c993d853da54a (diff) | |
download | lua-language-server-fecdb2af1ceba45021486d1e28d8e11f490d2b36.zip |
fix
Diffstat (limited to 'script/provider')
-rw-r--r-- | script/provider/diagnostic.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/script/provider/diagnostic.lua b/script/provider/diagnostic.lua index 94e69838..0655b1c7 100644 --- a/script/provider/diagnostic.lua +++ b/script/provider/diagnostic.lua @@ -282,12 +282,12 @@ function m.refresh(uri) end await.close('diag:' .. uri) await.call(function () ---@async + m.diagnosticsScope(uri) if uri then await.setID('diag:' .. uri) await.sleep(0.1) xpcall(m.doDiagnostic, log.error, uri) end - m.diagnosticsScope(uri) end) end @@ -355,7 +355,7 @@ function m.diagnosticsScope(uri, force) local id = 'diagnosticsScope:' .. scp:getName() await.close(id) await.call(function () ---@async - await.sleep(math.max(delay, 0.1)) + await.sleep(math.max(delay, 0.2)) while loading.count() > 0 do await.sleep(1.0) end |