* Gets the PaneBackendExecutor instance. * Creates and caches the instance on first call, detecting the appropriate pane backend.
()
| 440 | * Creates and caches the instance on first call, detecting the appropriate pane backend. |
| 441 | */ |
| 442 | async function getPaneBackendExecutor(): Promise<TeammateExecutor> { |
| 443 | if (!cachedPaneBackendExecutor) { |
| 444 | const detection = await detectAndGetBackend() |
| 445 | cachedPaneBackendExecutor = createPaneBackendExecutor(detection.backend) |
| 446 | logForDebugging( |
| 447 | `[BackendRegistry] Created PaneBackendExecutor wrapping ${detection.backend.type}`, |
| 448 | ) |
| 449 | } |
| 450 | return cachedPaneBackendExecutor |
| 451 | } |
| 452 | |
| 453 | /** |
| 454 | * Resets the backend detection cache. |
no test coverage detected