Add MCP Servers view

This commit is contained in:
Saoud Rizwan
2024-12-01 12:13:16 -08:00
parent b5d03dd523
commit 5052944efe
6 changed files with 11441 additions and 11371 deletions

View File

@@ -43,6 +43,12 @@ export function activate(context: vscode.ExtensionContext) {
}),
)
context.subscriptions.push(
vscode.commands.registerCommand("cline.mcpButtonClicked", () => {
sidebarProvider.postMessageToWebview({ type: "action", action: "mcpButtonClicked" })
}),
)
const openClineInNewTab = async () => {
outputChannel.appendLine("Opening Cline in new tab")
// (this example uses webviewProvider activation event which is necessary to deserialize cached webview, but since we use retainContextWhenHidden, we don't need to use that event)