rust-lang / rust-lang/rust-analyzer
[Feature request] Request to try to apply a code action(assist)
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 16.9k
- Forks
- 2.2k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 72
Description
It would be nice if we were able to attempt apply code actions without opening the code action menu, so one can set certain IDE hotkeys to "just do things", like adding explicit typing. (Inspiration: Intellij, where you can basically bind any code action)
The request would probably be very similar to how code action list works, but it gets run immediately, or respond that said assist is not available
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing how the existing code action list and assist flow work, including how an unavailable assist is reported. Define the behavior for invoking an assist directly without opening the code action menu, and verify that IDE hotkeys can trigger it and receive an unavailable response when appropriate.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100