Skip to content

POC: Code Lenses #243

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

POC: Code Lenses #243

wants to merge 1 commit into from

Conversation

CamilleTeruel
Copy link

@CamilleTeruel CamilleTeruel commented Aug 10, 2023

POC to show how to add code lenses for DevChat.
Here the only code lens is an alias for askForCode command.

askCode_CodeLens

Instead of only ask code, we could have a few different tools.
Here is a mockup with 2 other hypothetical tools:

  • rewrite code: would take an instruction with QuickPick (a default "improve" or "refactor" instruction can be provided) and rewrite code in place (not in DevChat panel)
  • critic code (that could show critics as diagnostics or better suggest fixes as code actions)
Screenshot 2023-08-11 at 15 48 42

Add a CodeLensProvider to register commands as code lenses around current selection.
Only one command (askForCode) for now.
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.

1 participant