From ab8f5d6f36b8f60a36132f3420d79571984cf908 Mon Sep 17 00:00:00 2001 From: Evan Date: Mon, 20 Jan 2025 20:23:00 +0800 Subject: [PATCH] minor formatting --- src/core/webview/ClineProvider.ts | 4 ++-- src/shared/WebviewMessage.ts | 2 +- webview-ui/src/components/mcp/McpView.tsx | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/core/webview/ClineProvider.ts b/src/core/webview/ClineProvider.ts index 053a52fd68..31061d0802 100644 --- a/src/core/webview/ClineProvider.ts +++ b/src/core/webview/ClineProvider.ts @@ -209,7 +209,7 @@ export class ClineProvider implements vscode.WebviewViewProvider { const enabled = this.mcpHub?.isMcpEnabled() ?? true await this.postMessageToWebview({ type: "mcpEnabled", - enabled + enabled, }) } }, @@ -584,7 +584,7 @@ export class ClineProvider implements vscode.WebviewViewProvider { const enabled = this.mcpHub?.isMcpEnabled() ?? true await this.postMessageToWebview({ type: "mcpEnabled", - enabled + enabled, }) break } diff --git a/src/shared/WebviewMessage.ts b/src/shared/WebviewMessage.ts index 668b5d6852..e7faec225a 100644 --- a/src/shared/WebviewMessage.ts +++ b/src/shared/WebviewMessage.ts @@ -34,7 +34,7 @@ export interface WebviewMessage { | "openExtensionSettings" | "getMcpEnabled" | "toggleMcp" - // | "relaunchChromeDebugMode" + // | "relaunchChromeDebugMode" text?: string askResponse?: ClineAskResponse apiConfiguration?: ApiConfiguration diff --git a/webview-ui/src/components/mcp/McpView.tsx b/webview-ui/src/components/mcp/McpView.tsx index 4fdeaee6df..8841669e0d 100644 --- a/webview-ui/src/components/mcp/McpView.tsx +++ b/webview-ui/src/components/mcp/McpView.tsx @@ -194,7 +194,8 @@ const McpView = ({ onDone }: McpViewProps) => { fontSize: "12px", lineHeight: "1.4", }}> - MCP is currently disabled. Enable MCP to use MCP servers and tools. Enabling MCP will use additional tokens. + MCP is currently disabled. Enable MCP to use MCP servers and tools. Enabling MCP will use + additional tokens. )}