Skip to content

Commit c77a969

Browse files
committed
Do not send project update in background if there was no ensureUpdate pending on the project structure
1 parent 235e1c5 commit c77a969

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/server/editorServices.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -539,10 +539,11 @@ namespace ts.server {
539539
else {
540540
if (this.pendingEnsureProjectForOpenFiles) {
541541
this.ensureProjectForOpenFiles();
542+
543+
// Send the event to notify that there were background project updates
544+
// send current list of open files
545+
this.sendProjectsUpdatedInBackgroundEvent();
542546
}
543-
// Send the event to notify that there were background project updates
544-
// send current list of open files
545-
this.sendProjectsUpdatedInBackgroundEvent();
546547
}
547548
});
548549
}

0 commit comments

Comments
 (0)