Support '// @ts-ignore' comments in .ts files
This commit is contained in:
parent
ae1752e10d
commit
f28d80d7d4
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue