2
0
Эх сурвалжийг харах

Update commands to roo-cline to be consistent with others

Matt Rubens 10 сар өмнө
parent
commit
e4fb0081b1

+ 1 - 1
src/activate/registerCommands.ts

@@ -47,7 +47,7 @@ export const registerCommands = (options: RegisterCommandOptions) => {
 	// Human Relay Dialog Command
 	context.subscriptions.push(
 		vscode.commands.registerCommand(
-			"roo-code.showHumanRelayDialog",
+			"roo-cline.showHumanRelayDialog",
 			(params: { requestId: string; promptText: string }) => {
 				if (getPanel()) {
 					getPanel()?.webview.postMessage({

+ 2 - 2
src/api/providers/human-relay.ts

@@ -123,7 +123,7 @@ async function showHumanRelayDialog(promptText: string): Promise<string | undefi
 
 		// Register a global callback function
 		vscode.commands.executeCommand(
-			"roo-code.registerHumanRelayCallback",
+			"roo-cline.registerHumanRelayCallback",
 			requestId,
 			(response: string | undefined) => {
 				resolve(response)
@@ -131,7 +131,7 @@ async function showHumanRelayDialog(promptText: string): Promise<string | undefi
 		)
 
 		// Open the dialog box directly using the current panel
-		vscode.commands.executeCommand("roo-code.showHumanRelayDialog", {
+		vscode.commands.executeCommand("roo-cline.showHumanRelayDialog", {
 			requestId,
 			promptText,
 		})

+ 2 - 2
src/core/webview/ClineProvider.ts

@@ -1571,7 +1571,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
 						break
 					case "humanRelayResponse":
 						if (message.requestId && message.text) {
-							vscode.commands.executeCommand("roo-code.handleHumanRelayResponse", {
+							vscode.commands.executeCommand("roo-cline.handleHumanRelayResponse", {
 								requestId: message.requestId,
 								text: message.text,
 								cancelled: false,
@@ -1581,7 +1581,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
 
 					case "humanRelayCancel":
 						if (message.requestId) {
-							vscode.commands.executeCommand("roo-code.handleHumanRelayResponse", {
+							vscode.commands.executeCommand("roo-cline.handleHumanRelayResponse", {
 								requestId: message.requestId,
 								cancelled: true,
 							})

+ 3 - 3
src/extension.ts

@@ -60,7 +60,7 @@ export function activate(context: vscode.ExtensionContext) {
 	// Register human relay callback registration command
 	context.subscriptions.push(
 		vscode.commands.registerCommand(
-			"roo-code.registerHumanRelayCallback",
+			"roo-cline.registerHumanRelayCallback",
 			(requestId: string, callback: (response: string | undefined) => void) => {
 				registerHumanRelayCallback(requestId, callback)
 			},
@@ -70,7 +70,7 @@ export function activate(context: vscode.ExtensionContext) {
 	// Register human relay response processing command
 	context.subscriptions.push(
 		vscode.commands.registerCommand(
-			"roo-code.handleHumanRelayResponse",
+			"roo-cline.handleHumanRelayResponse",
 			(response: { requestId: string; text?: string; cancelled?: boolean }) => {
 				const callback = humanRelayCallbacks.get(response.requestId)
 				if (callback) {
@@ -86,7 +86,7 @@ export function activate(context: vscode.ExtensionContext) {
 	)
 
 	context.subscriptions.push(
-		vscode.commands.registerCommand("roo-code.unregisterHumanRelayCallback", (requestId: string) => {
+		vscode.commands.registerCommand("roo-cline.unregisterHumanRelayCallback", (requestId: string) => {
 			humanRelayCallbacks.delete(requestId)
 		}),
 	)