summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 c8d6c211..f60a9149 100644
--- a/script/provider/diagnostic.lua
+++ b/script/provider/diagnostic.lua
@@ -274,6 +274,7 @@ function m.refresh(uri)
await.call(function () ---@async
await.delay()
if uri then
+ m.clear(uri)
xpcall(m.doDiagnostic, log.error, uri)
end
m.diagnosticsAll()