Problem
Inlay hints and autocompletion are not showing up while typing or moving the mouse pointer in Visual Studio Code for Rust code.
However, JavaScript inlay hints and autocompletion work, for instance.
Also note that Rust is working properly, and as such I do get diagnostics from cargo check in my IDE.
Expected behavior
Inlay hints and autocompletion working for Rust code.
Version
Visual Studio Code: 1.92.2
rustc version: rustc 1.83.0-nightly
Installation: Rustup x86_64-windows-msvc nightly
Windows: Windows 10 22H2
Extensions
"rust-analyzer" (0.3.2096)
Settings:
{
"rust-analyzer.discoverProjectRunner": null,
"rust-analyzer.linkedProjects": [],
"rust-analyzer.restartServerOnConfigChange": true
}
Earlier versions
As to when it was working, I unfortunately do not remember the versions used of the above extension and Visual Studio Code for example. I just have gone back to Windows 10 without much backup.
RustRover
JetBrains RustRover just works when compared to Visual Studio Code, and I get inlay hints and autocomplete as desired.