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 committed 2019-04-03 14:05:49 -07:00
1 parent 5869662c3f
commit 7ccd86bf52
3 files changed
+88 -1

No files matched your search

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