Skip to content

Commit f82fc72

Browse files
authored
fix: ignore diagnostics paths for standalone cnfgs (#794)
Fix ignore codes for standalone cnfgs
1 parent 272957e commit f82fc72

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/src/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ async function publishDiagnosticsCnfg(uri: string): Promise<void> {
104104
);
105105
let diagnostics = await langService.provideDiagnostics(uri, cnfg);
106106
if (codes) {
107-
diagnostics = diagnostics.filter((diag) => diag.code && codes.includes(diag.code as string));
107+
diagnostics = diagnostics.filter((diag) => diag.code && !codes.includes(diag.code as string));
108108
}
109109
connection.sendDiagnostics({ uri: uri, diagnostics: diagnostics });
110110
}

0 commit comments

Comments
 (0)