Skip to content

Commit

Permalink
Do not send project update in background if there was no ensureUpdate…
Browse files Browse the repository at this point in the history
… pending on the project structure
  • Loading branch information
sheetalkamat committed Apr 7, 2018
1 parent 235e1c5 commit c77a969
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/server/editorServices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -539,10 +539,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();
}
});
}
Expand Down

0 comments on commit c77a969

Please sign in to comment.