File tree Expand file tree Collapse file tree
extensions/typescript-language-features/src Expand file tree Collapse file tree Original file line number Diff line number Diff 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 } {
You can’t perform that action at this time.
0 commit comments