Skip to content

Commit 354dd6d

Browse files
Crazy-OwlDonJayamanne
authored andcommitted
Fix getting rid of lint errors on tab close (DonJayamanne#884)
1 parent 205b220 commit 354dd6d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/client/providers/lintProvider.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export class LintProvider extends vscode.Disposable {
112112
}
113113

114114
// Check if this document is still open as a duplicate editor
115-
if (this.isDocumentOpen(textDocument.uri) && this.diagnosticCollection.has(textDocument.uri)) {
115+
if (!this.isDocumentOpen(textDocument.uri) && this.diagnosticCollection.has(textDocument.uri)) {
116116
this.diagnosticCollection.set(textDocument.uri, []);
117117
}
118118
});
@@ -199,4 +199,4 @@ export class LintProvider extends vscode.Disposable {
199199
});
200200
});
201201
}
202-
}
202+
}

0 commit comments

Comments
 (0)