From be751d73a841b02528067d9b6bef4569fcfd3919 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Tue, 6 Feb 2024 10:41:18 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20start=20new=20session=20and=20le?= =?UTF-8?q?t=20user=20edit=20with=20quick=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extensions/vscode/src/commands.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/extensions/vscode/src/commands.ts b/extensions/vscode/src/commands.ts index 303531df4..38cb8852a 100644 --- a/extensions/vscode/src/commands.ts +++ b/extensions/vscode/src/commands.ts @@ -123,11 +123,12 @@ const commandsMap: { [command: string]: (...args: any) => any } = { acceptRejectVerticalDiffBlock(false, filepath, index); }, "continue.quickFix": async (message: string, code: string, edit: boolean) => { - ideProtocolClient.sendMainUserInput( - `${ + debugPanelWebview?.postMessage({ + type: "newSessionWithPrompt", + prompt: `${ edit ? "/edit " : "" - }${code}\n\nHow do I fix this problem in the above code?: ${message}` - ); + }${code}\n\nHow do I fix this problem in the above code?: ${message}`, + }); if (!edit) { vscode.commands.executeCommand("continue.continueGUIView.focus"); }