Skip to content

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