Skip to content

Conversation

vladima
Copy link
Contributor

@vladima vladima commented Feb 24, 2016

fixes #7221

@@ -1030,7 +1030,13 @@ namespace ts {
}

function getDeclarationDiagnostics(sourceFile: SourceFile, cancellationToken: CancellationToken): Diagnostic[] {
return getDiagnosticsHelper(sourceFile, getDeclarationDiagnosticsForFile, cancellationToken);
const options = program.getCompilerOptions();
if (!sourceFile || options.out || options.outFile) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i would add a comment here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mhegazy
Copy link
Contributor

mhegazy commented Feb 24, 2016

👍

@RyanCavanaugh
Copy link
Member

👍

vladima added a commit that referenced this pull request Feb 24, 2016
avoid multiple passes over the program when computing diagnostics for…
@vladima vladima merged commit 9b7d72c into master Feb 24, 2016
@vladima vladima deleted the bundledDeclarationEmit branch February 24, 2016 23:25
@mhegazy
Copy link
Contributor

mhegazy commented Feb 25, 2016

@vladima can we port this to release-1.8

vladima added a commit that referenced this pull request Feb 25, 2016
avoid multiple passes over the program when computing diagnostics for…
@vladima
Copy link
Contributor Author

vladima commented Feb 25, 2016

@mhegazy #7244

vladima added a commit that referenced this pull request Feb 25, 2016
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

performance problem: --declaration and --outFile very slow
4 participants