We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cdcb5f commit 832f130Copy full SHA for 832f130
src/server/editorServices.ts
@@ -930,7 +930,8 @@ namespace ts.server {
930
931
/*@internal*/
932
delayEnsureProjectForOpenFiles() {
933
- if (!this.openFiles.size) return;
+ // If no open files or no external project, do not schedule
934
+ if (!this.openFiles.size && !this.externalProjects.length && !this.externalProjectToConfiguredProjectMap.size) return;
935
this.pendingEnsureProjectForOpenFiles = true;
936
this.throttledOperations.schedule(ensureProjectForOpenFileSchedule, /*delay*/ 2500, () => {
937
if (this.pendingProjectUpdates.size !== 0) {
0 commit comments