vscode-rust
vscode-rust copied to clipboard
Breadcrumbs support
The latest VSCode version has introduced breadcrumbs support, which is a quite good addition to navigation experience.
Unfortunately, in Rust it works only with files and does not support symbol hierarchy (e.g. file -> impl -> method).
IIUC this needs the hierarchical symbol outline response from the RLS; with that, the VSCode should automatically populate the breadcrumbs UI.
@Xanewok But the "Goto symbol in file by category" command (@:) works fine. Do breadcrumbs require a different way of populating symbols?
IIUC they need a hierarchical information, which we don’t provide yet
Is this the relevant issue on the RLS side?
https://github.com/rust-lang/rls/issues/909
Most likely. Anyway, RustAnalyzer supports this.
Most likely. Anyway, RustAnalyzer supports this.
Thank you!
For others looking for this: simply switching the engine from rls to rust-analyzer in the settings for the vscode-rust extension will not currently make breadcrumbs work. Instead, disable or uninstall the vscode-rust extension, and install the matklad.rust-analyzer extension; a reload will be required. More installation info here.