When old program resolved to module and that file is included, dont consider as ambient resolution.

Fixes #30422
This commit is contained in:
Sheetal Nandi
2019-04-03 14:05:49 -07:00
parent 5869662c3f
commit 7ccd86bf52
3 changed files with 88 additions and 1 deletions

View File

@@ -958,6 +958,9 @@ 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) {
this.print();
}
return hasNewProgram;
}