Take pr feedback into account

This commit is contained in:
Sheetal Nandi
2015-10-30 15:06:23 -07:00
parent 2b582a0b71
commit 62d4fd6d35
2 changed files with 4 additions and 6 deletions

View File

@@ -832,13 +832,11 @@ namespace ts {
});
}
function getOptionsDiagnostics(cancellationToken?: CancellationToken, includeEmitBlockingDiagnostics?: boolean): Diagnostic[] {
function getOptionsDiagnostics(cancellationToken?: CancellationToken): Diagnostic[] {
let allDiagnostics: Diagnostic[] = [];
addRange(allDiagnostics, fileProcessingDiagnostics.getGlobalDiagnostics());
addRange(allDiagnostics, programDiagnostics.getGlobalDiagnostics());
if (!includeEmitBlockingDiagnostics) {
addRange(allDiagnostics, emitBlockingDiagnostics.getGlobalDiagnostics());
}
addRange(allDiagnostics, emitBlockingDiagnostics.getGlobalDiagnostics());
return sortAndDeduplicateDiagnostics(allDiagnostics);
}