Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support go to definition on inlay hints #876

Open
JohnnyMorganz opened this issue Dec 24, 2024 · 0 comments
Open

Support go to definition on inlay hints #876

JohnnyMorganz opened this issue Dec 24, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@JohnnyMorganz
Copy link
Owner

This is an interesting feature of rust-analyzer that allows you to perform go to definition on parts of an inlay hint:

image

Each separate part allows go to definition, e.g. Iter and GenericDeclarationParameter are 2 separate go-to-definition possibilities.

It seems this is possible by InlayHintLabelPart in the spec: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#inlayHintLabelPart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant