Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

Breadcrumbs support #396

Open
pravic opened this issue Aug 14, 2018 · 6 comments
Open

Breadcrumbs support #396

pravic opened this issue Aug 14, 2018 · 6 comments
Labels
enhancement Indicates new feature requests rls Issue related to the RLS itself rather than the extension

Comments

@pravic
Copy link

pravic commented Aug 14, 2018

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

@Xanewok Xanewok added enhancement Indicates new feature requests rls Issue related to the RLS itself rather than the extension labels Apr 7, 2019
@Xanewok
Copy link
Member

Xanewok commented Apr 7, 2019

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

@pravic
Copy link
Author

pravic commented Apr 8, 2019

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

@Xanewok
Copy link
Member

Xanewok commented Apr 8, 2019

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

@sjwo
Copy link

sjwo commented Aug 16, 2021

Is this the relevant issue on the RLS side?

rust-lang/rls#909

@pravic
Copy link
Author

pravic commented Aug 16, 2021

Most likely. Anyway, RustAnalyzer supports this.

@sjwo
Copy link

sjwo commented Aug 17, 2021

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Indicates new feature requests rls Issue related to the RLS itself rather than the extension
Projects
None yet
Development

No branches or pull requests

3 participants