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

Jump Custom Request Client Implementation #1654

Merged
merged 14 commits into from
Nov 29, 2024
Merged

Conversation

PizieDust
Copy link
Contributor

@PizieDust PizieDust commented Nov 21, 2024

Advanced Navigation

Introduction

This PR implements the Jump Custom Requests.

UI

Jump results are displayed in a QuickPick component where upon selection, the jump is made to the selected target.

UX

This command can be triggered from the command pallet or with the keyboard binding Alt +J

Notifications

  • Ocamllsp warning: If ocamllsp is not running at the time the command is invoked, this notification is displayed.
  • No support for requests: If the version of ocamllsp doesn't publish the ocamllsp/jump capability then this notification is displayed.

Commands

One command is published ocaml.jump which triggers the process.

Demo

vscode.jump.mp4

References

cc @voodoos

@PizieDust PizieDust marked this pull request as ready for review November 25, 2024 05:15
src/extension_commands.ml Outdated Show resolved Hide resolved
@smorimoto
Copy link
Collaborator

Could you please move the changelog entry to unreleased section?

Copy link
Collaborator

@voodoos voodoos left a comment

Choose a reason for hiding this comment

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

Thanks Pizie, looks good. I made a few comments / tweaks suggestions.

CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
src/custom_requests.ml Outdated Show resolved Hide resolved
src/custom_requests.mli Outdated Show resolved Hide resolved
src/extension_commands.ml Outdated Show resolved Hide resolved
src/extension_commands.ml Outdated Show resolved Hide resolved
src/extension_commands.ml Outdated Show resolved Hide resolved
src/treeview_commands.ml Outdated Show resolved Hide resolved
@PizieDust PizieDust requested a review from voodoos November 28, 2024 11:27
@smorimoto smorimoto added the type: feature New feature or request label Nov 28, 2024
src/extension_commands.ml Outdated Show resolved Hide resolved
@PizieDust PizieDust requested a review from voodoos November 28, 2024 16:26
src/extension_commands.ml Outdated Show resolved Hide resolved
@smorimoto smorimoto requested a review from voodoos November 28, 2024 17:15
Copy link
Collaborator

@voodoos voodoos left a comment

Choose a reason for hiding this comment

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

Thanks, looks good to go !

(I am going to release a compatible LSP today)

@smorimoto smorimoto merged commit 4734290 into ocamllabs:master Nov 29, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants