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
Expand code action menu at any code which has both refactor and refactor.inline codeActions
Since the order of codeActionGroups in codeActionMenu.ts is hard coded, it de-prioritizes the refactor code action and put it to uncategorizedCodeActionGroup i.e. More Actions...
Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.82.2. Please try upgrading to the latest version and checking whether this issue remains.
This is intended since refactorings (and all code actions) in general are grouped into the categories - actions with just refactor as the CodeActionKind are too unspecific.
A workaround could be like this:
Here, we specify a refactor subset to be grouped, instead of the blanket CodeActionKind.Refactor type.
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
refactor
andrefactor.inline
codeActionscodeActionGroups
incodeActionMenu.ts
is hard coded, it de-prioritizes therefactor
code action and put it touncategorizedCodeActionGroup
i.e.More Actions...
vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.ts
Lines 24 to 33 in b201702
Related:
rust-lang/rust-analyzer#15364
Although rust-lang/rust-analyzer#14362 has tried to fix the order but it does not work with grouping without changes on vscode's side.
Possible Fix:
Cover all
CodeActionKind
in order incodeActionGroups
https://code.visualstudio.com/api/references/vscode-api#CodeActionKind
The text was updated successfully, but these errors were encountered: