MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / getVisibleProviderOrLog

Function getVisibleProviderOrLog

src/activate/registerCommands.ts:22–29  ·  view source on GitHub ↗
(outputChannel: vscode.OutputChannel)

Source from the content-addressed store, hash-verified

20 * Helper to get the visible ClineProvider instance or log if not found.
21 */
22export 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
32let sidebarPanel: vscode.WebviewView | undefined = undefined

Callers 2

getCommandsMapFunction · 0.85

Calls 2

getVisibleInstanceMethod · 0.80
appendLineMethod · 0.80

Tested by

no test coverage detected