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::Variable #619

Merged
merged 2 commits into from
Jul 23, 2023

Conversation

jansul
Copy link
Contributor

@jansul jansul commented Jul 5, 2023

Been through a couple of iterations of this and still not terribly happy with the code (could do with another pass or two 😅), but this PR adds "Go to Definition" support for the majority of Ast::Variable's.

Here's a quick example of it in action:

2023-07-05.22-17-22.mp4

Will keep testing as I'm sure there's a bunch of weird and wonderful ways of using Mint that I haven't accounted for, but it's pretty handy as is!

Note: There are a couple of tests that will fail until the fix from #615 has been merged

@gdotdesign gdotdesign added enhancement New feature or request tooling Tooling related feature (formatter, documentation, production builder) labels Jul 20, 2023
@gdotdesign gdotdesign added this to the 0.19.0 milestone Jul 20, 2023
src/ls/definition/enum_id.cr Outdated Show resolved Hide resolved
@gdotdesign
Copy link
Member

It looks very good! Thank you for adding a huge amount of tests 🙏 Please update the PR from the master branch and it should be ready to go from my side 👍

@gdotdesign gdotdesign requested a review from Sija July 20, 2023 04:07
Copy link
Member

@Sija Sija left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gdotdesign gdotdesign merged commit f00a5c6 into mint-lang:master Jul 23, 2023
4 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