diff --git a/extensions/vscode/src/commands.ts b/extensions/vscode/src/commands.ts index f9bf3254807..18d5435da95 100644 --- a/extensions/vscode/src/commands.ts +++ b/extensions/vscode/src/commands.ts @@ -353,9 +353,6 @@ const getCommandsMap: ( "continue.clearConsole": async () => { consoleView.clearLog(); }, - "continue.viewLogs": async () => { - vscode.commands.executeCommand("workbench.action.toggleDevTools"); - }, "continue.debugTerminal": async () => { const terminalContents = await ide.getTerminalContents(); diff --git a/extensions/vscode/src/extension.ts b/extensions/vscode/src/extension.ts index 4712ebc4226..54e49c0ce2a 100644 --- a/extensions/vscode/src/extension.ts +++ b/extensions/vscode/src/extension.ts @@ -14,6 +14,12 @@ async function dynamicImportAndActivate(context: vscode.ExtensionContext) { } export function activate(context: vscode.ExtensionContext) { + context.subscriptions.push( + vscode.commands.registerCommand("continue.viewLogs", () => { + vscode.commands.executeCommand("workbench.action.toggleDevTools"); + }), + ); + return dynamicImportAndActivate(context).catch((e) => { console.log("Error activating extension: ", e); vscode.window @@ -26,7 +32,6 @@ export function activate(context: vscode.ExtensionContext) { if (selection === "View Logs") { vscode.commands.executeCommand("continue.viewLogs"); } else if (selection === "Retry") { - // Reload VS Code window vscode.commands.executeCommand("workbench.action.reloadWindow"); } });