Skip to content

Commit 5562872

Browse files
committed
Remove workaround for ts infer type suggestions showing up with no quick fix
This should not be needed now that we are shipping TS 3.2.2
1 parent d2d7fec commit 5562872

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

extensions/typescript-language-features/src/typeScriptServiceClientHost.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -266,17 +266,7 @@ export default class TypeScriptServiceClientHost extends Disposable {
266266
diagnostics: Proto.Diagnostic[],
267267
source: string
268268
): (vscode.Diagnostic & { reportUnnecessary: any })[] {
269-
return diagnostics
270-
.filter(tsDiag => {
271-
// See https://github.com/Microsoft/TypeScript/issues/28702
272-
// The infer type suggestions are being returned even when no code action is available.
273-
// Hide these on broken versions of TS because showing them currently is very confusing.
274-
if (tsDiag.code === 7044) {
275-
return !(this.client.apiVersion.gte(API.v320) && this.client.apiVersion.lt(API.v330));
276-
}
277-
return true;
278-
})
279-
.map(tsDiag => this.tsDiagnosticToVsDiagnostic(tsDiag, source));
269+
return diagnostics.map(tsDiag => this.tsDiagnosticToVsDiagnostic(tsDiag, source));
280270
}
281271

282272
private tsDiagnosticToVsDiagnostic(diagnostic: Proto.Diagnostic, source: string): vscode.Diagnostic & { reportUnnecessary: any } {

0 commit comments

Comments
 (0)