-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Implement disabled
, isPreferred
and documentation
fields for code actions
#10777
Implement disabled
, isPreferred
and documentation
fields for code actions
#10777
Conversation
Contributed on behalf of STMicroelectronics Signed-off-by: Lucas Koehler <lkoehler@eclipsesource.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I confirmed that functionally the changes work very well 👍
- confirmed that disabled items are in fact disabled compared to master
- confirmed that documentation entries work well
if (metadata && metadata.documentation) { | ||
disposables = new DisposableCollection(); | ||
documentation = metadata.documentation.map(doc => ({ | ||
kind: doc.kind.value!, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lucas-koehler I believe that value
is non-optional in vscode, should we align?
Contributed on behalf of STMicroelectronics Signed-off-by: Lucas Koehler <lkoehler@eclipsesource.com>
@vince-fugnitto Thanks for your review :) I aligned CodeActionKind's |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes are looking good to me!
- Preferred code actions are highlighted
- Clicking the documentation code actions brings up the pages in the browser
I noticed that a separator is missing in Theia compared to VSCode:
Theia:
I assume that's unrelated to your changes. Or do you think you can "simply" add that as well?
@msujew Unfortunately, as this menu comes from monaco, I do not know how to add this in a simple way. |
@lucas-koehler Completely fine with me. Since Colin is working on updating Monaco anyway, it's not that important 👍 |
@vince-fugnitto : Fine with merging this? |
Fixes #9989
Closes #10073 - this builds on #10073 but also hands in the documentation metadata into monaco.
Contributed on behalf of STMicroelectronics
Signed-off-by: Lucas Koehler lkoehler@eclipsesource.com
What it does
Fixes #9989
disabled
andisPreferred
fields to theCodeAction
interfacedocumentation
field toCodeActionProviderMetaData
interface.How to test
:)
Learn more about Emojis...
which opens the emoji wikipedia page when selected. This is the documentation entryReview checklist
Reminder for reviewers