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

Function setPanel

src/activate/registerCommands.ts:46–57  ·  view source on GitHub ↗
(
	newPanel: vscode.WebviewPanel | vscode.WebviewView | undefined,
	type: "sidebar" | "tab",
)

Source from the content-addressed store, hash-verified

44 * Set panel references
45 */
46export function setPanel(
47 newPanel: vscode.WebviewPanel | vscode.WebviewView | undefined,
48 type: "sidebar" | "tab",
49): void {
50 if (type === "sidebar") {
51 sidebarPanel = newPanel as vscode.WebviewView
52 tabPanel = undefined
53 } else {
54 tabPanel = newPanel as vscode.WebviewPanel
55 sidebarPanel = undefined
56 }
57}
58
59export type RegisterCommandOptions = {
60 context: vscode.ExtensionContext

Callers 3

resolveWebviewViewMethod · 0.90
openClineInNewTabFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected