From dc05bf949cb2e03df9e98cb7924e89d0f1412889 Mon Sep 17 00:00:00 2001 From: Nate Date: Tue, 29 Apr 2025 09:58:31 -0700 Subject: [PATCH] don't show warning message if copy buffer service fails to register (it's not critical enough to bring to the user's attention) --- extensions/vscode/src/commands.ts | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/extensions/vscode/src/commands.ts b/extensions/vscode/src/commands.ts index 3d47a16a0..10bddead5 100644 --- a/extensions/vscode/src/commands.ts +++ b/extensions/vscode/src/commands.ts @@ -382,6 +382,7 @@ const getCommandsMap: ( range, ); } + return { "continue.acceptDiff": async (newFileUri?: string, streamId?: string) => processDiff( @@ -950,7 +951,7 @@ const getCommandsMap: ( if (core.configHandler.currentProfile?.profileDescription.id) { core.invoke("config/updateSelectedModel", { profileId: - core.configHandler.currentProfile?.profileDescription.id, + core.configHandler.currentProfile?.profileDescription.id, role: "autocomplete", title: selectedOption, }); @@ -1129,7 +1130,7 @@ export function registerAllCommands( //Non-critical error, it needs to be intercepted and not prevent the extension from starting console.log("Error registering CopyBufferService: ", e); Telemetry.capture( - "vscode_extension_activation_error", + "vscode_extension_copy_buffer_failure", { stack: extractMinimalStackTraceInfo(e.stack), message: e.message, @@ -1137,13 +1138,5 @@ export function registerAllCommands( false, true, ); - vscode.window.showWarningMessage( - "Failed to override 'editor.action.clipboardCopyAction'. Continue will not have access to the clipboard.", - "View Logs", - ).then((selection) => { - if (selection === "View Logs") { - vscode.commands.executeCommand("continue.viewLogs"); - } - }); } }