You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Background
The proposed CodeActionProviderMetadata.documentation lets extensions contribute documentation entries for specific a CodeActionKind
The documentation entries are rendered at the bottom of the completion list
Testing
Using the code action sample extension, try contributing some documentation. Specifically, try creating a documentation contribution for CodeActionKind.Refactor:
Can you get the contribution to show up as expected?
Make sure this entry only shows up when the code action provider is registered (and that unregistering the provider removes the documentation entry)
For your test Refactor documentation, make sure that the entry only shows up when you would expect:
It should only show in the lightbulb menu if your provider returns at least one Refactoring code action,
It should always show up in the refactor menu.
Try creating a documentation for some other cases, such a QuickFix to make sure these also follow the same rules.
Try adding a more specific documentation entry for refactoring, such as RefactorExtract`.
Confirm that in this case, the most specific documentation entry should be shown
The text was updated successfully, but these errors were encountered:
Test for #86788
Complexity: 4
Background
The proposed
CodeActionProviderMetadata.documentation
lets extensions contribute documentation entries for specific aCodeActionKind
The documentation entries are rendered at the bottom of the completion list
Testing
Using the code action sample extension, try contributing some
documentation
. Specifically, try creating a documentation contribution forCodeActionKind.Refactor
:Can you get the contribution to show up as expected?
Make sure this entry only shows up when the code action provider is registered (and that unregistering the provider removes the documentation entry)
For your test
Refactor
documentation, make sure that the entry only shows up when you would expect:Refactoring
code action,Try creating a documentation for some other cases, such a
QuickFix
to make sure these also follow the same rules.Try adding a more specific
documentation entry for refactoring, such as
RefactorExtract`.The text was updated successfully, but these errors were encountered: