mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-03-15 14:05:47 -05:00
Should also check if there are no external projects before skipping scheduling
Fixes failing tests
This commit is contained in:
@@ -923,7 +923,8 @@ namespace ts.server {
|
||||
|
||||
/*@internal*/
|
||||
delayEnsureProjectForOpenFiles() {
|
||||
if (!this.openFiles.size) return;
|
||||
// If no open files or no external project, do not schedule
|
||||
if (!this.openFiles.size && !this.externalProjects.length && !this.externalProjectToConfiguredProjectMap.size) return;
|
||||
this.pendingEnsureProjectForOpenFiles = true;
|
||||
this.throttledOperations.schedule("*ensureProjectForOpenFiles*", /*delay*/ 2500, () => {
|
||||
if (this.pendingProjectUpdates.size !== 0) {
|
||||
|
||||
Reference in New Issue
Block a user