Do not send project update in background if there was no ensureUpdate pending on the project structure
This commit is contained in:
parent
62c6fe2ccc
commit
c9f39951b6
1 changed files with 4 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue