rust-lang / rust-lang/rust-analyzer

Extract Method disappears

Open
#17,171 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-assists C-bug
Dominant language
Rust
Stars
16.9k
Forks
2.2k
Avg merge
1d 12h
Merged PRs (30d)
72

Description

When I reload the VS Code Window, I can select "Extract Method" for a few Seconds.


image

After everything is loaded "Extract Method" disappears


image

And sometimes, it randomly comes back as an option.

Also happens for new Projects:
image

rust-analyzer version: rust-analyzer version: 0.3.1940-standalone (f216be4a0 2024-04-27)
rustc version: rustc 1.77.2 (25ef9e3d8 2024-04-09)

editor or extension: VSCode

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in a VS Code Window using the reported rust-analyzer and rustc versions, and observe when the Extract Method action disappears or returns after loading. Compare behavior in the existing project and a new project; done means the action remains consistently available when its conditions are met.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, vscode
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.