Add command [ocaml-eglot-type-annotate]#74
Conversation
18bd7f9 to
0d93eda
Compare
|
Just learned about this: ocaml/ocaml-lsp#397 so this PR might be redundant w.r.t. that work, or rather, perhaps there should rather be an Emacs binding to that existing LSP action? |
|
Hi ! Thanks a lot for your contribution! |
Sure, there's no hurry on my end. It'd be good for me to test run this feature for a bit and gauge how helpful it is in the end. |
|
I ran into an issue today where the inserted annotation was the definition of a type (a record) instead of the name of the type. Basically, I ended up with |
|
Yes ! I guess that we can make the feature a little bit more ... dynamic (toggleTypeAnot) for example? |
|
Closed in favor of #84 |
Add a new command
ocaml-eglot-type-annotatetoocaml-eglot-type-enclosing-mapthat inserts a type annotation for the current enclosing with its inferred type:Screencast.From.2025-11-07.12-31-53.mp4
TBH, not yet sure how useful it is.