If files are not open dont schedule open file project ensure

This commit is contained in:
Sheetal Nandi 2020-11-13 16:41:08 -08:00
parent 0edf650622
commit 08205196f2

View file

@ -923,6 +923,7 @@ namespace ts.server {
/*@internal*/
delayEnsureProjectForOpenFiles() {
if (!this.openFiles.size) return;
this.pendingEnsureProjectForOpenFiles = true;
this.throttledOperations.schedule("*ensureProjectForOpenFiles*", /*delay*/ 2500, () => {
if (this.pendingProjectUpdates.size !== 0) {