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

Explain code with Grantite.Code Context Menu Item #2

Open
bellds opened this issue Sep 19, 2024 · 1 comment
Open

Explain code with Grantite.Code Context Menu Item #2

bellds opened this issue Sep 19, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@bellds
Copy link

bellds commented Sep 19, 2024

Description:
Make it easier for a person to get the editors current file (code) explained to them by providing a context menu.

Solution:
The IBM Granite.Code should contribute a context menu to the File Editor that says something like Explain code with IBM Granite.Code. When a person clicks on this menu item a new Chat Session needs be started with an initial prompt having Granite.Code explain the code in the file.

Additionally, the Chat Session should be titled something like Explain @xyz.file

Context:
The above solution is based upon the Ansible Lightspeed plugin. The Ansible Lightspeed IDE plugin contributes a context menu that says Explain the playbook with Ansible Lightspeed

Alternatives:
A person can manually create a new chat session and then ask it to explain a file. However, not all files in a workspace show up in the prompt's type ahead.

@bellds bellds added the enhancement New feature or request label Sep 19, 2024
@alvkhtan
Copy link
Collaborator

WCAST-I-173

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants