(projectPath: string)
| 2672 | } |
| 2673 | |
| 2674 | private async awaitProjectGate(projectPath: string): Promise<void> { |
| 2675 | const cg = this.getCodeGraph(projectPath); |
| 2676 | if (!this.projectLifecycle || cg === this.cg) return; |
| 2677 | let gate = this.projectGates.get(cg); |
| 2678 | if (!gate) { |
| 2679 | gate = this.projectLifecycle.activate(cg).catch(() => { /* engine logs */ }); |
| 2680 | this.projectGates.set(cg, gate); |
| 2681 | void gate.then(() => { |
| 2682 | if (this.projectGates.get(cg) === gate) this.projectGates.delete(cg); |
| 2683 | this.trimProjects(); |
| 2684 | }); |
| 2685 | } |
| 2686 | await this.awaitCatchUpGate(gate); |
| 2687 | } |
| 2688 | |
| 2689 | /** |
| 2690 | * Never evict a graph while a tool call or its timed-out reconcile uses it. |
no test coverage detected