microsoft / vscode-copilot-release

Feedback on GitHub Copilot Chat UX in Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=GitHub.copilot-chat
Creative Commons Attribution 4.0 International
333 stars 32 forks source link

Contextual Copilot Query Option for Terminal Outputs #421

Closed georgekosmidis closed 1 year ago

georgekosmidis commented 1 year ago

Feature Description

While building or running applications, the terminal window in Visual Studio Code generates valuable information, such as exceptions or warnings. It would be beneficial to have a feature where users can select this information and directly query Copilot by simply right-clicking on the selected text.

Use Case

  1. User runs/builds an app: The user initiates the run/build process of an application (e.g. python) within VS Code.
  2. Encounter an Issue: The user encounters a warning/exception which is displayed in the terminal window.
  3. Select & Right-Click: The user selects the relevant error message or warning and right-clicks to reveal a context menu.
  4. Query Copilot: An option in the context menu to "/Ask" appears. The user selects this option.
  5. Receive Assistance: Copilot processes the query and provides relevant suggestions or solutions to the user.

Benefits

Other possibilities

Tyriar commented 1 year ago

FYI Copilot already has an explain selection entry, I'm not sure if it's in stable or just the pre-release currently.

georgekosmidis commented 1 year ago

FYI Copilot already has an explain selection entry, I'm not sure if it's in stable or just the pre-release currently.

You are absolutely right, but it doesn't appear when you right click, for example, in the terminal (which makes sense, its a terminal not VS Code but still an integration with panels like Output or Debug Console would be awesome)

Tyriar commented 1 year ago

@georgekosmidis yes it does:

image

Right click's behavior depends on the OS though, you may need to use shift+right click. See https://code.visualstudio.com/docs/terminal/basics#_rightclick-behavior

georgekosmidis commented 1 year ago

Ah, you are right, its there... I am closing this then, thank you!