We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e77f40 commit e090043Copy full SHA for e090043
src/compiler/program.ts
@@ -1031,6 +1031,7 @@ namespace ts {
1031
1032
function getDeclarationDiagnostics(sourceFile: SourceFile, cancellationToken: CancellationToken): Diagnostic[] {
1033
const options = program.getCompilerOptions();
1034
+ // collect diagnostics from the program only once if either no source file was specified or out/outFile is set (bundled emit)
1035
if (!sourceFile || options.out || options.outFile) {
1036
return getDeclarationDiagnosticsWorker(sourceFile, cancellationToken);
1037
}
0 commit comments