Commit 56c99366 authored by Yi-Ann Chen's avatar Yi-Ann Chen
Browse files

chore: add error handling to openMcpDashboard

parent edb4b5cb
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -106,7 +106,11 @@ export const openLink = async (params: OpenLinkParams | unknown) => {
 * extension executes the command that shows the dashboard.
 */
export const openMcpDashboard = async () => {
  try {
    await vscode.commands.executeCommand(PROGRAMMATIC_COMMANDS.WEBVIEW_ROOT_MCP_SHOW);
  } catch (e) {
    log.warn(`Failed to open MCP Dashboard: ${e.message}`);
  }
};

export type WebviewId = typeof DUO_CHAT_WEBVIEW_ID | typeof AGENTIC_CHAT_WEBVIEW_ID;