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

LSP: Go to definition #526

Merged
merged 2 commits into from
Dec 25, 2024
Merged

LSP: Go to definition #526

merged 2 commits into from
Dec 25, 2024

Conversation

kengorab
Copy link
Owner

Implement goto definition in the language service, for variables and standalone identifiers (much like with hover, there's still a lot of places that need to have identifier metadata emitted during typechecking). As those places are updated, they will work for hover as well as goto definition, which is a big upside!
This also refactors the Some(...) AST transformation to use a bogus Position, so hover and goto definition work for Some(...) identifiers.

Implement goto definition in the language service, for variables and
standalone identifiers (much like with hover, there's still a lot of
places that need to have identifier metadata emitted during
typechecking). As those places are updated, they will work for hover as
well as goto definition, which is a big upside!
This also refactors the `Some(...)` AST transformation to use a bogus
Position, so hover and goto definition work for `Some(...)` identifiers.
@kengorab kengorab added the lsp label Dec 24, 2024
@kengorab kengorab merged commit 860fbfe into master Dec 25, 2024
1 check passed
@kengorab kengorab deleted the lsp-goto-definition branch December 25, 2024 02:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant