-
-
Notifications
You must be signed in to change notification settings - Fork 910
OCaml: Add type enclosing #4741
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
OCaml: Add type enclosing #4741
Conversation
a32b3b4
to
2fd1ac3
Compare
This PR is now ready. It implements functions using the custom request defined in https://github.com/ocaml/ocaml-lsp/blob/master/ocaml-lsp-server/docs/ocamllsp/typeEnclosing-spec.md |
a3991e7
to
e1e880c
Compare
I'm a bit confused. Does the https://github.com/freebroccolo/ocaml-language-server no longer work? It returns 404 now. 😕 Should we remove it? Can you rebase to resolve the conflict? Thanks! 😋 |
I don't know anyone that uses it and it hasn't been maintained for the last 8 years so I think it could be removed, yes |
Can you fix the CI? Thank you! |
3f000d0
to
43220c0
Compare
Should be ok now ;-) |
This also creates a transient keymap allowing to: - increase/decrease the verbosity of the displayed type - copy the computed type - Increase/Decrease index - Show the region that is currently being typed
…nature This function was useful because textDocument/hover returned the type and documentation of the identifier at point making it hard to kill the type only Now that ocamllsp/typeEnclosing is used instead there is no reason to keep this poorly written function (I was young and innocent)
CHANGELOG updated
43220c0
to
71a54fa
Compare
Thank you! |
This is the second of a series of PR I aim to do to improve the ocaml-lsp experience in lsp-mode
This PR exposes
lsp-ocaml-type-enclosing
that allows to get the type at point and improve itThis is still a draft PR because I need to add more verbosity and index options allowing to show types behind aliases and much more
This PR is based on #4732 and shouldn't be merged until the first one is