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

feature: open related code actions #795

Merged
merged 1 commit into from
Jul 26, 2022

Conversation

rgrinberg
Copy link
Member

@rgrinberg rgrinberg commented Jul 20, 2022

We can now open documents on the lsp side, which means that we can
implement ml/mli toggling entirely in LSP

  • Add a create .mli code action if one doesn't exist

@rgrinberg rgrinberg force-pushed the ps/rr/feature__open_related_code_actions branch 2 times, most recently from da32590 to 986f280 Compare July 20, 2022 02:00
@rgrinberg rgrinberg requested a review from ulugbekna July 20, 2022 02:00
@rgrinberg rgrinberg force-pushed the ps/rr/feature__open_related_code_actions branch 2 times, most recently from 88aa683 to 9b89205 Compare July 20, 2022 02:18
@rgrinberg
Copy link
Member Author

ping @ulugbekna

@ulugbekna
Copy link
Collaborator

Is it okay if I review it on Monday?

@rgrinberg
Copy link
Member Author

rgrinberg commented Jul 22, 2022 via email

Copy link
Collaborator

@ulugbekna ulugbekna left a comment

Choose a reason for hiding this comment

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

I like this PR a lot!

ocaml-lsp-server/src/code_actions/open_related.mli Outdated Show resolved Hide resolved
ocaml-lsp-server/src/code_actions/open_related.ml Outdated Show resolved Hide resolved
We can now open documents on the lsp side, which means that we can
implement ml/mli toggling entirely in LSP

ps-id: e8a3b313-bfc9-4f75-af26-48228f3e999a
@rgrinberg rgrinberg force-pushed the ps/rr/feature__open_related_code_actions branch from 9b89205 to adbbae1 Compare July 26, 2022 16:17
@rgrinberg rgrinberg added this to the 1.13.0 milestone Jul 26, 2022
@rgrinberg rgrinberg merged commit 2d9b1f8 into master Jul 26, 2022
rgrinberg added a commit to rgrinberg/opam-repository that referenced this pull request Jul 27, 2022
CHANGES:

## Features

- Code actions for jumping to related files (`.ml`, `.mli`, etc.) (ocaml/ocaml-lsp#795)
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