mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
Update commands to roo-cline to be consistent with others
This commit is contained in:
parent
73ac64924e
commit
e4fb0081b1
4 changed files with 8 additions and 8 deletions
|
|
@ -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({
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue