rust-lang / rust-lang/rust-analyzer

VS Code editor contents move around while RA is processing

Open
#20,656 3 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

When typing in a file (with the top of the file in the viewport), the content of the editor shifts down for a short moment while RA is processing:

https://github.com/user-attachments/assets/84893c5b-ecb7-4672-a58d-6607a847cb43

This is pretty jarring and annoying (luckily it doesn't happen when the top of the file is scrolled out of view).

rust-analyzer version: ust-analyzer version: 0.4.2608-standalone (9edc9cbe5d 2025-09-08) [/Users/djc/.vscode/extensions/rust-lang.rust-analyzer-0.4.2608-darwin-arm64/server/rust-analyzer]

rustc version: rustc 1.89.0 (29483883e 2025-08-04)

editor or extension: VS Code, extension version 0.4.2608

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 editor shift in VS Code using rust-analyzer 0.4.2608, rustc 1.89.0, and the extension version listed in the report, with the top of a file visible while typing. Trace which rust-analyzer or VS Code extension processing step changes the visible contents, then verify that processing no longer moves the editor viewport.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.