Skip to content

QuickTextEntry auto-focus #562

Closed
Closed

Description

@LangLangBart

Before submitting your bug report

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.quickTextEntry to focus after a query is entered and the ⏎ Enter key is hit?

  • if you install version 0.0.134 the focus does work
  0.0.134            2023-07-08T00:02:53.533Z ✹ 08/Jul/23
0.0.134.mp4
  • in the current version no action
  0.0.412            2023-10-10T02:06:04.28Z ✹ 10/Oct/23
0.0.412.mp4

To reproduce

  1. hide the Primary Side
  2. press ⌘ Command + ⇧ Shift + L and enter something
  3. press ⏎ Enter
  4. notice that the Continue extension is not auto-focused, but the query is being processed

Log output

No response

Activity

  1. sestinj commented on Oct 17, 2023

    @sestinj
    Contributor

    @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!

  2. LangLangBart commented on Oct 18, 2023

    @LangLangBart
    ContributorAuthor

    Wow, that was like a speedrun in commenting!

    Can fix this by tomorrow!

    👍

  3. sestinj commented on Oct 18, 2023

    @sestinj
    Contributor

    Now ready in the latest pre-release! (0.1.28)

  4. LangLangBart commented on Oct 18, 2023

    @LangLangBart
    ContributorAuthor

    Now ready in the latest pre-release! (0.1.28)

    • Thank you. Confirming pressing ⌘ Command + ⇧ Shift + L auto-focuses on the codium extension.
    0.1.28 Pre-Release  2023-10-18T08:24:22.657Z ✹ 10h ago
    

    PS: I just noticed since version 0.1.27 that the ⌥ Option + ⌘ Command + N key combo no longer works in the preview version. The issue seems to have been introduced between 0.1.27 and 0.1.26.

      0.1.27 Pre-Release  2023-10-17T22:10:16.317Z ✹ 21h ago
      0.1.26 Pre-Release  2023-10-14T17:23:01.04Z ✹ 14/Oct/23
    

    PPS: I will open another ticket, if you can confirm it was unintentional.

  5. sestinj commented on Oct 19, 2023

    @sestinj
    Contributor

    Definitely not purposeful. I think I know what caused this, so hopefully another quick fix

  6. added
    kind:bug
    ide:vscode
    on Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ide:vscodekind:bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions