(instance: OpenCanvasInstance)
| 582 | } |
| 583 | |
| 584 | private upsertOpenCanvas(instance: OpenCanvasInstance): void { |
| 585 | const index = this.openCanvasInstances.findIndex( |
| 586 | (open) => open.instanceId === instance.instanceId |
| 587 | ); |
| 588 | if (index >= 0) { |
| 589 | this.openCanvasInstances[index] = instance; |
| 590 | } else { |
| 591 | this.openCanvasInstances.push(instance); |
| 592 | } |
| 593 | } |
| 594 | |
| 595 | /** |
| 596 | * Executes a tool handler and sends the result back via RPC. |
no test coverage detected