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: Add Go To Definition support for Ast::Access #636

Merged
merged 1 commit into from
Sep 6, 2023

Conversation

jansul
Copy link
Contributor

@jansul jansul commented Sep 3, 2023

This PR adds support for Ast::Access, which I think might be one of the last things needed for Go To Definition. (unless I'm missing some other language features!)

2023-09-03.13-12-55.mp4

Fairly straightforward implementation as the type checker is doing the heavy lifting. I did change the parser for Ast:Access so it no longer tracks the variable it uses so .nodes_at_cursor finds the access first. (didn't seem to be used by hover or other LS features)

@Sija Sija added enhancement New feature or request tooling Tooling related feature (formatter, documentation, production builder) labels Sep 3, 2023
@Sija Sija requested a review from gdotdesign September 3, 2023 12:53
@gdotdesign gdotdesign added this to the 0.19.0 milestone Sep 6, 2023
@gdotdesign gdotdesign merged commit a037f8c into mint-lang:master Sep 6, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request tooling Tooling related feature (formatter, documentation, production builder)
Development

Successfully merging this pull request may close these issues.

3 participants