Repository navigation
Closed
Labels
ide:vscodeRelates specifically to VS Code extensionkind:bugIndicates an unexpected problem or unintended behavior
Description
Before submitting your bug report
- I believe this is a bug. I'll try to join the Continue Discord for questions
- I'm not able to find an open issue that reports the same bug
- I've seen the troubleshooting guide on the Continue Docs
Relevant environment info
- Continue: 0.0.412 and 0.1.27 (Pre-Release)Description
- the continue.quickTextEntry isn't auto-focusing in the continue extension
- the line
vscode.commands.executeCommand("continue.continueGUIView.focus");was added with commit 926324c and removed a week later with commit c31d716- there was likely a reason for this, I just couldn't figure it out :)
--- 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");
+ },
};- is it possible for the
continue.quickTextEntryto focus after a query is entered and the ⏎ Enter key is hit?
- if you install version
0.0.134the focus does work
0.0.134 2023-07-08T00:02:53.533Z ✹ 08/Jul/230.0.134.mp4
- in the current version no action
0.0.412 2023-10-10T02:06:04.28Z ✹ 10/Oct/230.0.412.mp4
To reproduce
- hide the
Primary Side - press ⌘ Command + ⇧ Shift + L and enter something
- press ⏎ Enter
- notice that the
Continueextension is not auto-focused, but the query is being processed
Log output
No response
Metadata
Metadata
Assignees
Labels
ide:vscodeRelates specifically to VS Code extensionkind:bugIndicates an unexpected problem or unintended behavior
Activity
sestinj commentedon Oct 17, 2023
@LangLangBart I believe I did this for the sake of /edit queries, where you probably don't want to see the sidebar, but really obvious solution I should have done is just check for /edit. Can fix this by tomorrow!
LangLangBart commentedon Oct 18, 2023
Wow, that was like a speedrun in commenting!
👍
sestinj commentedon Oct 18, 2023
Now ready in the latest pre-release! (0.1.28)
LangLangBart commentedon Oct 18, 2023
codiumextension.PS: I just noticed since version
0.1.27that the ⌥ Option + ⌘ Command + N key combo no longer works in thepreviewversion. The issue seems to have been introduced between0.1.27and0.1.26.PPS: I will open another ticket, if you can confirm it was unintentional.
sestinj commentedon Oct 19, 2023
Definitely not purposeful. I think I know what caused this, so hopefully another quick fix