-
Notifications
You must be signed in to change notification settings - Fork 235
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
Implementation to get list of possible jumps #1891
base: main
Are you sure you want to change the base?
Conversation
| Some loc -> `Found loc | ||
| None -> `Error ("No matching case found for " ^ target) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know that it is not particularly related to this PR but just out of curiosity, why going for a polymorphic variant? It looks like result
is sufficient here no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can correct this in a different PR. But I just maintained what was already used, which was the variant
closes #1817
Add a new function
get_all
that returns all the possible jump targets in a code buffer.In some client implementations, we repeatedly query the
Jump
command of Merlin which means many trips to the server from the client. This new function ensures that we only make the trip once and we get all the information we need.cc @voodoos