Backspaces we insert into a command for a useCommandline suggestion show up in the suggestions UI #21116

Closed
opened 2026-01-31 07:33:35 +00:00 by claunia · 0 comments
Owner

Originally created by @zadjii-msft on GitHub (Jan 19, 2024).

Originally assigned to: @zadjii-msft on GitHub.

v1.19

  1. add an action like
         {
             "command": 
             {
                 "action": "sendInput",
                 "input": "git status"
             },
         },
    
  2. Enable shell integration
  3. type git at the prompt
  4. Do a showSuggestions("source": [ "tasks", "commandHistory" ], "useCommandline": true). The suggested task looks like

image

The backspaces we inserted? Those show up in the name. They shouldn't. We can probably manually remove them, if we know the command didn't have a specific name set.

Originally created by @zadjii-msft on GitHub (Jan 19, 2024). Originally assigned to: @zadjii-msft on GitHub. v1.19 1. add an action like ```json { "command": { "action": "sendInput", "input": "git status" }, }, ``` 2. Enable shell integration 3. type `git` at the prompt 4. Do a `showSuggestions("source": [ "tasks", "commandHistory" ], "useCommandline": true)`. The suggested task looks like ![image](https://github.com/microsoft/terminal/assets/18356694/49a3120b-4aba-400f-b8c7-76e13bde73b4) The backspaces we inserted? Those show up in the name. They shouldn't. We can probably manually remove them, if we know the command didn't have a specific name set.
claunia added the Issue-BugIn-PRNeeds-Tag-FixProduct-TerminalArea-Suggestions labels 2026-01-31 07:33:35 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21116