rust-lang / rust-lang/rust-analyzer

Inlay hints rapidly spawning and despawning in VSCode, making code unreadable while typing

Open
#21,091 5 comments 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-inlay-hints A-vscode
Dominant language
Rust
Stars
16.9k
Forks
2.2k
Avg merge
1d 12h
Merged PRs (30d)
72

Description

This may in fact be an issue with VS Code, if so, let me know and I'll submit an issue to them.

This is what I'm experiencing... as you can see pretty much impossible to see what I'm typing:

Image

The inlay hints rapidly despawn and then respawn every time a new character is added, shifting the whole formatting around as they do so...

This seems like a recent issue, I hadn't really noticed it this bad until today

Rust Analyzer Version:

Version 0.4.2689, Server Version 0.4.2689-standalone (eaaa2da9fb 2025-11-20)

VS Code Version:
Image

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

Start by reproducing the inlay-hint behavior while typing in VS Code with the reported Rust Analyzer version 0.4.2689. Inspect the Rust Analyzer inlay-hints path and compare editor updates to determine whether hints are being removed and recreated on each character; done means typing no longer causes visible hint flicker or formatting shifts.

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
Quiet
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.