OCaml-LSP 1.26.0
This new release of OCaml-LSP brings several new features and improvements, including new custom requests, support for range formatting, and enhanced hover capabilities.
See the related announcement on the Discuss forums.
See full changelog
Features
- Add custom
ocamllsp/refactorExtractrequest (#1545) - Add
destructcustom request (#1583) - Add
locate_typescustom request (#1584) - Add support for the
textDocument/rangeFormattingrequest (#1591) - Allow to configure merlin using build systems other than dune.
If
$OCAMLLSP_PROJECT_BUILD_SYSTEMenvironment variable is set then OCaml LSP will execute$OCAMLLSP_PROJECT_BUILD_SYSTEM ocaml-merlincommand to get merlin configuration for a module. It is expected the command to communicate usingmerlin-dot-protocol. If$OCAMLLSP_PROJECT_ROOTenvironment variable is set then OCaml LSP will use it as a project root directory.
Fixes
- Enable "hover" on more locations, notably class and object related (#1599)