Do not send project update in background if there was no ensureUpdate pending on the project structure

This commit is contained in:
Sheetal Nandi 2018-04-06 14:58:13 -07:00
parent 62c6fe2ccc
commit c9f39951b6

View file

@ -548,10 +548,11 @@ namespace ts.server {
else {
if (this.pendingEnsureProjectForOpenFiles) {
this.ensureProjectForOpenFiles();
// Send the event to notify that there were background project updates
// send current list of open files
this.sendProjectsUpdatedInBackgroundEvent();
}
// Send the event to notify that there were background project updates
// send current list of open files
this.sendProjectsUpdatedInBackgroundEvent();
}
});
}