Skip to content

Inlay hints multiply when using VSCode action "Rust Analyzer: Restart server" #12836

Closed
@Heinenen

Description

@Heinenen

While writing some rust, I restarted the language server with the "Rust Analyzer: Restart server" action and encountered a bug.
My "workflow" to reproduce:

  1. Restart r-a server
  2. Comment out a line
  3. Save file
  4. Uncomment same line

The bug is reproducible for me 100% of the time, even when I wait longer after restarting the language server.
Restarting the server multiple times increases the number of inlay hints multiple times (also seen in gif).

inlay_hints2

rust-analyzer version: 0.4.1132-standalone (567a5e9 2022-07-18)

rustc version: rustc 1.62.0 (a8314ef7d 2022-06-27)

PS: When using the "Developer: Reload window" action, the inlay hints don't show up at all unless I change something in the file (with or without saving it). If you think that is worth another issue, I can file one for that as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-vscodevscode plugin issuesBroken WindowBugs / technical debt to be addressed immediately

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions