summaryrefslogtreecommitdiff
path: root/extension/src/commands.ts
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-07-06 20:34:02 -0700
committerNate Sesti <sestinj@gmail.com>2023-07-06 20:34:02 -0700
commit9f621622a2259be7b639c4cbdac7b7e469ace69e (patch)
treefe014a235fb7c31609bcc9aae8802d6496258b72 /extension/src/commands.ts
parent58317604298800ccea238dd34d5ac6537ede4529 (diff)
downloadsncontinue-9f621622a2259be7b639c4cbdac7b7e469ace69e.tar.gz
sncontinue-9f621622a2259be7b639c4cbdac7b7e469ace69e.tar.bz2
sncontinue-9f621622a2259be7b639c4cbdac7b7e469ace69e.zip
quick text entry
Diffstat (limited to 'extension/src/commands.ts')
-rw-r--r--extension/src/commands.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/extension/src/commands.ts b/extension/src/commands.ts
index 4414a171..ffb67ab5 100644
--- a/extension/src/commands.ts
+++ b/extension/src/commands.ts
@@ -17,6 +17,7 @@ import { acceptDiffCommand, rejectDiffCommand } from "./diffs";
import * as bridge from "./bridge";
import { debugPanelWebview } from "./debugPanel";
import { sendTelemetryEvent, TelemetryEvent } from "./telemetry";
+import { ideProtocolClient } from "./activation/activate";
// Copy everything over from extension.ts
const commandsMap: { [command: string]: (...args: any) => any } = {
@@ -63,6 +64,17 @@ const commandsMap: { [command: string]: (...args: any) => any } = {
type: "focusContinueInput",
});
},
+ "continue.quickTextEntry": async () => {
+ const text = await vscode.window.showInputBox({
+ placeHolder:
+ "Ask a question, give instructions, or enter a slash command",
+ title: "Continue Quick Input",
+ });
+ if (text) {
+ ideProtocolClient.sendMainUserInput(text);
+ }
+ vscode.commands.executeCommand("continue.continueGUIView.focus");
+ },
};
const textEditorCommandsMap: { [command: string]: (...args: any) => {} } = {