Skip to content

Commit 03124f3

Browse files
Simon Heatherdatho7561
authored andcommitted
Remove code
1 parent bc58ae3 commit 03124f3

File tree

3 files changed

+0
-376
lines changed

3 files changed

+0
-376
lines changed

src/diagnostic-filter.ts

Lines changed: 0 additions & 97 deletions
This file was deleted.

src/extension.ts

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import { getConflictingExtensions, showUninstallConflictsNotification } from './
2121
import { TelemetryErrorHandler, TelemetryOutputChannel } from './telemetry';
2222
import { createJSONSchemaStatusBarItem } from './schema-status-bar-item';
2323
import { initializeRecommendation } from './recommendation';
24-
import { filterSuppressedDiagnostics } from './diagnostic-filter';
2524

2625
export interface ISchemaAssociations {
2726
[pattern: string]: string[];
@@ -141,27 +140,6 @@ export function startClient(
141140
initializationOptions: {
142141
l10nPath,
143142
},
144-
middleware: {
145-
handleDiagnostics(uri, diagnostics, next) {
146-
const doc = workspace.textDocuments.find((d) => d.uri.toString() === uri.toString());
147-
const getLineText = (line: number): string | undefined => {
148-
try {
149-
return doc?.lineAt(line).text;
150-
} catch {
151-
return undefined;
152-
}
153-
};
154-
next(
155-
uri,
156-
filterSuppressedDiagnostics(
157-
diagnostics,
158-
(d) => d.range.start.line,
159-
(d) => d.message,
160-
getLineText
161-
)
162-
);
163-
},
164-
},
165143
};
166144

167145
// Create the language client and start it

test/diagnostic-filter.test.ts

Lines changed: 0 additions & 257 deletions
This file was deleted.

0 commit comments

Comments
 (0)