diff --git a/src/compiler/program.ts b/src/compiler/program.ts index fe0b4c4de36..f03a073dfb7 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -1172,9 +1172,7 @@ namespace ts { const programDiagnosticsInFile = programDiagnostics.getDiagnostics(sourceFile.fileName); const diagnostics = bindDiagnostics.concat(checkDiagnostics, fileProcessingDiagnosticsInFile, programDiagnosticsInFile); - return isSourceFileJavaScript(sourceFile) - ? filter(diagnostics, shouldReportDiagnostic) - : diagnostics; + return filter(diagnostics, shouldReportDiagnostic); }); }