diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 00e933d680ab9..93437259d6187 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -1158,9 +1158,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); }); }