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

Update Jump functionality #1461

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Update Jump functionality #1461

wants to merge 7 commits into from

Conversation

PizieDust
Copy link
Contributor

This PR enhances jump functionality used in :

  • Jump Code Actions
  • The Jump Custom request

Instead of recursively checking if each target is possible, we now send a single query and get all the possible jump targets.

The trace on computing code actions is:

  • Getting each target separately
    [Trace - 5:07:56 AM] Received response 'textDocument/codeAction - (2)' in 523ms.
    [Trace - 5:08:35 AM] Received response 'textDocument/codeAction - (17)' in 18ms.

  • Getting all targets at once
    [Trace - 5:15:50 AM] Received response 'textDocument/codeAction - (2)' in 244ms.
    Trace - 5:15:59 AM] Received response 'textDocument/codeAction - (11)' in 7ms.

which indicates some performance improvement.

This Pr is dependent on the corresponding Merlin implementation ocaml/merlin#1891

cc @voodoos

@PizieDust
Copy link
Contributor Author

requires no changelog label

@xvw
Copy link
Collaborator

xvw commented Jan 31, 2025

Does it change the behaviour of the custom request?

@PizieDust
Copy link
Contributor Author

Does it change the behaviour of the custom request?

No it doesn't. The output should be the same.

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

Successfully merging this pull request may close these issues.

2 participants