Skip to content

Commit 0820519

Browse files
committed
If files are not open dont schedule open file project ensure
1 parent 0edf650 commit 0820519

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/server/editorServices.ts

+1
Original file line numberDiff line numberDiff line change
@@ -923,6 +923,7 @@ namespace ts.server {
923923

924924
/*@internal*/
925925
delayEnsureProjectForOpenFiles() {
926+
if (!this.openFiles.size) return;
926927
this.pendingEnsureProjectForOpenFiles = true;
927928
this.throttledOperations.schedule("*ensureProjectForOpenFiles*", /*delay*/ 2500, () => {
928929
if (this.pendingProjectUpdates.size !== 0) {

0 commit comments

Comments
 (0)