summaryrefslogtreecommitdiff
path: root/extension/src/commands.ts
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-07-17 13:33:29 -0700
committerNate Sesti <sestinj@gmail.com>2023-07-17 13:33:29 -0700
commit1a647a7321a31d7ccf29f27e56c3df0828c3e9c8 (patch)
tree3e20e038d06449d6dff677566e1bdf6ed148eb96 /extension/src/commands.ts
parent062b0872797fb4734ed36ea3a14f653dc685a86a (diff)
parentd0dc7811eb71d9d53055a1aa684827502748b794 (diff)
downloadsncontinue-1a647a7321a31d7ccf29f27e56c3df0828c3e9c8.tar.gz
sncontinue-1a647a7321a31d7ccf29f27e56c3df0828c3e9c8.tar.bz2
sncontinue-1a647a7321a31d7ccf29f27e56c3df0828c3e9c8.zip
Merge branch 'main' of https://github.com/continuedev/continue into anthropic
Diffstat (limited to 'extension/src/commands.ts')
-rw-r--r--extension/src/commands.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/extension/src/commands.ts b/extension/src/commands.ts
index 888f01ed..2b7f4c0c 100644
--- a/extension/src/commands.ts
+++ b/extension/src/commands.ts
@@ -34,6 +34,13 @@ const commandsMap: { [command: string]: (...args: any) => any } = {
"continue.rejectDiff": rejectDiffCommand,
"continue.acceptAllSuggestions": acceptAllSuggestionsCommand,
"continue.rejectAllSuggestions": rejectAllSuggestionsCommand,
+ "continue.quickFix": async (message: string, code: string, edit: boolean) => {
+ ideProtocolClient.sendMainUserInput(
+ `${
+ edit ? "/edit " : ""
+ }${code}\n\nHow do I fix this problem in the above code?: ${message}`
+ );
+ },
"continue.focusContinueInput": async () => {
if (focusedOnContinueInput) {
vscode.commands.executeCommand("workbench.action.focusActiveEditorGroup");