Skip to content

Commit 51411c1

Browse files
authored
Merge pull request microsoft#32825 from microsoft/printProjects
Print program only if there are files are added or removed from the program.
2 parents b3268a7 + e109914 commit 51411c1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/server/project.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1009,9 +1009,12 @@ namespace ts.server {
10091009
);
10101010
const elapsed = timestamp() - start;
10111011
this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} Version: ${this.getProjectVersion()} structureChanged: ${hasNewProgram} Elapsed: ${elapsed}ms`);
1012-
if (this.program !== oldProgram) {
1012+
if (this.hasAddedorRemovedFiles) {
10131013
this.print();
10141014
}
1015+
else if (this.program !== oldProgram) {
1016+
this.writeLog(`Different program with same set of files:: oldProgram.structureIsReused:: ${oldProgram && oldProgram.structureIsReused}`);
1017+
}
10151018
return hasNewProgram;
10161019
}
10171020

0 commit comments

Comments
 (0)