(projectPath: string)
| 2604 | } |
| 2605 | |
| 2606 | private async awaitProjectGate(projectPath: string): Promise<void> { |
| 2607 | const cg = this.getCodeGraph(projectPath); |
| 2608 | if (!this.projectLifecycle || cg === this.cg) return; |
| 2609 | let gate = this.projectGates.get(cg); |
| 2610 | if (!gate) { |
| 2611 | gate = this.projectLifecycle.activate(cg).catch(() => { /* engine logs */ }); |
| 2612 | this.projectGates.set(cg, gate); |
| 2613 | void gate.then(() => { |
| 2614 | if (this.projectGates.get(cg) === gate) this.projectGates.delete(cg); |
| 2615 | this.trimProjects(); |
| 2616 | }); |
| 2617 | } |
| 2618 | await this.awaitCatchUpGate(gate); |
| 2619 | } |
| 2620 | |
| 2621 | /** |
| 2622 | * Never evict a graph while a tool call or its timed-out reconcile uses it. |
no test coverage detected