mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-20 05:17:43 -05:00
Take pr feedback into account
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user