vscode-rust icon indicating copy to clipboard operation
vscode-rust copied to clipboard

Breadcrumbs support

Open pravic opened this issue 7 years ago • 6 comments

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).

pravic avatar Aug 14 '18 05:08 pravic

IIUC this needs the hierarchical symbol outline response from the RLS; with that, the VSCode should automatically populate the breadcrumbs UI.

Xanewok avatar Apr 07 '19 18:04 Xanewok

@Xanewok But the "Goto symbol in file by category" command (@:) works fine. Do breadcrumbs require a different way of populating symbols?

pravic avatar Apr 08 '19 06:04 pravic

IIUC they need a hierarchical information, which we don’t provide yet

Xanewok avatar Apr 08 '19 07:04 Xanewok

Is this the relevant issue on the RLS side?

https://github.com/rust-lang/rls/issues/909

sjwo avatar Aug 16 '21 14:08 sjwo

Most likely. Anyway, RustAnalyzer supports this.

pravic avatar Aug 16 '21 16:08 pravic

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.

sjwo avatar Aug 17 '21 14:08 sjwo