Merge pull request #32825 from microsoft/printProjects

Print program only if there are files are added or removed from the program.
This commit is contained in:
Sheetal Nandi
2019-08-12 13:47:28 -07:00
committed by GitHub
+4 -1
View File
@@ -1009,9 +1009,12 @@ namespace ts.server {
);
const elapsed = timestamp() - start;
this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} Version: ${this.getProjectVersion()} structureChanged: ${hasNewProgram} Elapsed: ${elapsed}ms`);
if (this.program !== oldProgram) {
if (this.hasAddedorRemovedFiles) {
this.print();
}
else if (this.program !== oldProgram) {
this.writeLog(`Different program with same set of files:: oldProgram.structureIsReused:: ${oldProgram && oldProgram.structureIsReused}`);
}
return hasNewProgram;
}