From f28d80d7d48549ad8a5e0e48c3d74c44c93ebc25 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Wed, 13 Sep 2017 15:40:10 -0700 Subject: [PATCH] Support '// @ts-ignore' comments in .ts files --- src/compiler/program.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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); }); }