We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e57cf3 commit 63510aeCopy full SHA for 63510ae
script/provider/diagnostic.lua
@@ -303,6 +303,11 @@ function m.doDiagnostic(uri, isScopeDiag)
303
end
304
m.cache[uri] = full
305
306
+ if not files.exists(uri) then
307
+ m.clear(uri)
308
+ return
309
+ end
310
+
311
proto.notify('textDocument/publishDiagnostics', {
312
uri = uri,
313
version = version,
@@ -345,6 +350,11 @@ function m.resendDiagnostic(uri)
345
350
return
346
351
347
352
353
354
355
356
357
348
358
local version = files.getVersion(uri)
349
359
360
0 commit comments