Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: ask Cody about terminal output #3008

Merged
merged 4 commits into from
Feb 2, 2024
Merged

feat: ask Cody about terminal output #3008

merged 4 commits into from
Feb 2, 2024

Conversation

abeatrix
Copy link
Contributor

@abeatrix abeatrix commented Feb 2, 2024

Every time I encounter an error in the terminal, I need to copy and paste the error message into the chat and ask Cody to explain or debug it for me. I just discovered that there is an API to add a contribution point to the right-click menu in the VS Code terminal. I am proposing adding an option to 'Ask Cody' directly from the terminal output window.

image

This PR adds a new "Ask Cody" option to the terminal right-click menu that allows users to Ask Cody to explain the selection from their terminal output:

  • The terminal output will be sent to chat view with a predefined prompt that they can easily edit with the edit button.
  • Register a new command called cody.command.explain-output and bind it to the terminal view context menu.

Test plan

Select text in your terminal and right click to Ask Cody:

Screen.Recording.2024-02-01.at.8.59.59.PM.mov

@abeatrix abeatrix requested review from toolmantim and a team February 2, 2024 06:28
Copy link
Contributor

@umpox umpox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it!

Copy link
Contributor

@toolmantim toolmantim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome. Can we label the action “Ask Cody to Explain”?

@abeatrix abeatrix merged commit 23bc730 into main Feb 2, 2024
14 checks passed
@abeatrix abeatrix deleted the bee/explain-terminal branch February 2, 2024 15:58
abeatrix added a commit that referenced this pull request Feb 7, 2024
Add missing changelog entry for
#3008

## Test plan

<!-- Required. See
https://sourcegraph.com/docs/dev/background-information/testing_principles.
-->

Changelog entry update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants