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 0820519 commit 7e49390Copy full SHA for 7e49390
src/server/editorServices.ts
@@ -923,7 +923,8 @@ namespace ts.server {
923
924
/*@internal*/
925
delayEnsureProjectForOpenFiles() {
926
- if (!this.openFiles.size) return;
+ // If no open files or no external project, do not schedule
927
+ if (!this.openFiles.size && !this.externalProjects.length && !this.externalProjectToConfiguredProjectMap.size) return;
928
this.pendingEnsureProjectForOpenFiles = true;
929
this.throttledOperations.schedule("*ensureProjectForOpenFiles*", /*delay*/ 2500, () => {
930
if (this.pendingProjectUpdates.size !== 0) {
0 commit comments