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:13:28 -07:00
parent 2a2866c3a9
commit e10991413c

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;
}