There was an error while loading. Please reload this page.
1 parent 272957e commit f82fc72Copy full SHA for f82fc72
1 file changed
server/src/server.ts
@@ -104,7 +104,7 @@ async function publishDiagnosticsCnfg(uri: string): Promise<void> {
104
);
105
let diagnostics = await langService.provideDiagnostics(uri, cnfg);
106
if (codes) {
107
- diagnostics = diagnostics.filter((diag) => diag.code && codes.includes(diag.code as string));
+ diagnostics = diagnostics.filter((diag) => diag.code && !codes.includes(diag.code as string));
108
}
109
connection.sendDiagnostics({ uri: uri, diagnostics: diagnostics });
110
0 commit comments