mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-17 01:49:57 -05:00
If there are no open files, do not schedule ensureProjectForOpenFiles (#41537)
This commit is contained in:
@@ -930,6 +930,7 @@ namespace ts.server {
|
||||
|
||||
/*@internal*/
|
||||
delayEnsureProjectForOpenFiles() {
|
||||
if (!this.openFiles.size) return;
|
||||
this.pendingEnsureProjectForOpenFiles = true;
|
||||
this.throttledOperations.schedule(ensureProjectForOpenFileSchedule, /*delay*/ 2500, () => {
|
||||
if (this.pendingProjectUpdates.size !== 0) {
|
||||
|
||||
Reference in New Issue
Block a user