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
editor or extension: (eg. VSCode, Vim, Emacs, etc. For VSCode users, specify your extension version; for users of other editors, provide the distribution if applicable)
Cursor & VSCode
Extension version: 0.3.2466
code snippet to reproduce:
implFoo{// bazfnbaz(){}// barfnbar(){}}
If you position your cursor on Foo and hit Ctrl/⌘+. it will show only the "generate trait from impl" quick action:
However if you highlight any portion of "impl Foo {" or the final "}" or some (but not all) internal whitespace of the impl block (as little as one character, as many as all characters, even spaces), it will show additional quick actions:
Curiously, when selecting the entire impl block, the sort quick action is again not present.
This is extremely undiscoverable -- surely these quick actions should show up any time the cursor is on a relevant region, not just when a selection is active?
The text was updated successfully, but these errors were encountered:
The extract type assist should not appear unless you select some type, a single cursor is not enough. This is similar to the extract variable/function assists.
The "Sort methods alphabetically" should probably appear even when nothing is selected, but it's tricky to define when exactly.
rust-analyzer version: (eg. output of "rust-analyzer: Show RA Version" command, accessible in VSCode via Ctrl/⌘+Shift+P)
rust-analyzer version: 0.3.2466-standalone (e464ff8 2025-05-18)
rustc version: (eg. output of
rustc -V
)rustc 1.87.0 (17067e9ac 2025-05-09)
editor or extension: (eg. VSCode, Vim, Emacs, etc. For VSCode users, specify your extension version; for users of other editors, provide the distribution if applicable)
Cursor & VSCode
Extension version: 0.3.2466
code snippet to reproduce:
If you position your cursor on Foo and hit Ctrl/⌘+. it will show only the "generate trait from impl" quick action:

However if you highlight any portion of "impl Foo {" or the final "}" or some (but not all) internal whitespace of the impl block (as little as one character, as many as all characters, even spaces), it will show additional quick actions:

Curiously, when selecting the entire impl block, the sort quick action is again not present.
This is extremely undiscoverable -- surely these quick actions should show up any time the cursor is on a relevant region, not just when a selection is active?
The text was updated successfully, but these errors were encountered: