🚸 start new session and let user edit with quick fix
This commit is contained in:
parent
fd9ca79a41
commit
be751d73a8
1 changed files with 5 additions and 4 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue