(projectPath: string)
| 2789 | } |
| 2790 | |
| 2791 | private async awaitProjectGate(projectPath: string): Promise<void> { |
| 2792 | const cg = this.getCodeGraph(projectPath); |
| 2793 | if (!this.projectLifecycle || cg === this.cg) return; |
| 2794 | let gate = this.projectGates.get(cg); |
| 2795 | if (!gate) { |
| 2796 | gate = this.projectLifecycle.activate(cg).catch(() => { /* engine logs */ }); |
| 2797 | this.projectGates.set(cg, gate); |
| 2798 | void gate.then(() => { |
| 2799 | if (this.projectGates.get(cg) === gate) this.projectGates.delete(cg); |
| 2800 | this.trimProjects(); |
| 2801 | }); |
| 2802 | } |
| 2803 | await this.awaitCatchUpGate(gate); |
| 2804 | } |
| 2805 | |
| 2806 | /** |
| 2807 | * Never evict a graph while a tool call or its timed-out reconcile uses it. |
no test coverage detected