summaryrefslogtreecommitdiff
path: root/extension/src/commands.ts
diff options
context:
space:
mode:
Diffstat (limited to 'extension/src/commands.ts')
-rw-r--r--extension/src/commands.ts15
1 files changed, 15 insertions, 0 deletions
diff --git a/extension/src/commands.ts b/extension/src/commands.ts
index 4e2f4571..267f7e30 100644
--- a/extension/src/commands.ts
+++ b/extension/src/commands.ts
@@ -76,6 +76,7 @@ const commandsMap: { [command: string]: (...args: any) => any } = {
vscode.commands.executeCommand("workbench.action.toggleAuxiliaryBar");
},
"continue.quickTextEntry": async () => {
+ addHighlightedCodeToContext(true);
const text = await vscode.window.showInputBox({
placeHolder: "Ask a question or enter a slash command",
title: "Continue Quick Input",
@@ -100,6 +101,20 @@ const commandsMap: { [command: string]: (...args: any) => any } = {
vscode.commands.executeCommand("continue.continueGUIView.focus");
await ideProtocolClient.debugTerminal();
},
+
+ // Commands without keyboard shortcuts
+ "continue.addModel": () => {
+ vscode.commands.executeCommand("continue.continueGUIView.focus");
+ debugPanelWebview?.postMessage({
+ type: "addModel",
+ });
+ },
+ "continue.openSettingsUI": () => {
+ vscode.commands.executeCommand("continue.continueGUIView.focus");
+ debugPanelWebview?.postMessage({
+ type: "openSettings",
+ });
+ },
};
export function registerAllCommands(context: vscode.ExtensionContext) {