If files are not open dont schedule open file project ensure
This commit is contained in:
parent
0edf650622
commit
08205196f2
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue