Update commands to roo-cline to be consistent with others

This commit is contained in:
Matt Rubens 2025-03-05 10:39:36 -05:00
parent 73ac64924e
commit e4fb0081b1
4 changed files with 8 additions and 8 deletions

View file

@ -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({

View file

@ -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,
})

View file

@ -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,
})

View file

@ -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)
}),
)