diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-07-16 12:49:47 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-07-16 12:49:47 -0700 |
commit | 52cd93ad73f7df6a5140b7d629e4f6e473dc0380 (patch) | |
tree | 5c117da067090b0cc8bc79f5ad734cb84edb69aa /extension/src/commands.ts | |
parent | 71a869bda2018d8fcfff56f7eccfff2943c30ee0 (diff) | |
download | sncontinue-52cd93ad73f7df6a5140b7d629e4f6e473dc0380.tar.gz sncontinue-52cd93ad73f7df6a5140b7d629e4f6e473dc0380.tar.bz2 sncontinue-52cd93ad73f7df6a5140b7d629e4f6e473dc0380.zip |
feat: :sparkles: Continue Quick Fix
Diffstat (limited to 'extension/src/commands.ts')
-rw-r--r-- | extension/src/commands.ts | 7 |
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"); |