Skip to content

Commit 2a43912

Browse files
committed
update diagnostic
typing immediately stops workspace diagnostics
1 parent 83e2419 commit 2a43912

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

script/provider/diagnostic.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,10 @@ function m.refresh(uri)
292292
if not ws.isReady(uri) then
293293
return
294294
end
295+
local scp = scope.getScope(uri)
296+
local scopeID = 'diagnosticsScope:' .. scp:getName()
295297
await.close('diag:' .. uri)
298+
await.close(scopeID)
296299
await.call(function () ---@async
297300
if uri then
298301
await.setID('diag:' .. uri)

0 commit comments

Comments
 (0)