( preferInProcess: boolean = false, )
| 423 | * @returns TeammateExecutor instance |
| 424 | */ |
| 425 | export async function getTeammateExecutor( |
| 426 | preferInProcess: boolean = false, |
| 427 | ): Promise<TeammateExecutor> { |
| 428 | if (preferInProcess && isInProcessEnabled()) { |
| 429 | logForDebugging('[BackendRegistry] Using in-process executor') |
| 430 | return getInProcessBackend() |
| 431 | } |
| 432 | |
| 433 | // Return pane backend executor |
| 434 | logForDebugging('[BackendRegistry] Using pane backend executor') |
| 435 | return getPaneBackendExecutor() |
| 436 | } |
| 437 | |
| 438 | /** |
| 439 | * Gets the PaneBackendExecutor instance. |
nothing calls this directly
no test coverage detected