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 5763495 commit 3de5093Copy full SHA for 3de5093
1 file changed
src/providers/diagnostics/index.ts
@@ -28,6 +28,8 @@ export function registerDiagnosticCollection(mapping: Record<string, Extractor |
28
const activeDocumentText = useDocumentText(() => activeEditor.value?.document)
29
30
async function collectDiagnostics(document: TextDocument, extractor: Extractor) {
31
+ diagnosticCollection.delete(document.uri)
32
+
33
const root = extractor.parse(document)
34
if (!root)
35
return
0 commit comments