(outputChannel: vscode.OutputChannel)
| 20 | * Helper to get the visible ClineProvider instance or log if not found. |
| 21 | */ |
| 22 | export function getVisibleProviderOrLog(outputChannel: vscode.OutputChannel): ClineProvider | undefined { |
| 23 | const visibleProvider = ClineProvider.getVisibleInstance() |
| 24 | if (!visibleProvider) { |
| 25 | outputChannel.appendLine("Cannot find any visible Roo Code instances.") |
| 26 | return undefined |
| 27 | } |
| 28 | return visibleProvider |
| 29 | } |
| 30 | |
| 31 | // Store panel references in both modes |
| 32 | let sidebarPanel: vscode.WebviewView | undefined = undefined |
no test coverage detected