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

Support llmGenerated property on CodeAction #2020

Open
wants to merge 3 commits into
base: gh-pages
Choose a base branch
from

Conversation

StellaHuang95
Copy link

Addresses microsoft/vscode-languageserver-node#1555

  • Added llmGeneratedSupport to CodeActionClientCapabilities.
  • Added llmGenerated to CodeAction.
  • Marked both of them as proposed.

Copy link

@mfussenegger mfussenegger left a comment

Choose a reason for hiding this comment

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

Wouldn't it be more flexible if this were just a source hint, which can be an arbitrary string, or an enum+string for some well defined code action sources where llm is one of them?
E.g. if LLM gets replaced by some newer tech, there wouldn't be need to introduce a xyGenerated property.

Then this also wouldn't need a client capability (because if the client shows a fancy icon or something shouldn't matter for servers)

@StellaHuang95
Copy link
Author

Thanks for the feedback, I've updated to use CodeActionTag as suggested by Dirk. Please let me know if there's anything else you'd like me to address

@dbaeumer
Copy link
Member

@StellaHuang95 we should use the same wording tweaks as proposed in microsoft/vscode-languageserver-node#1557

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