OCaml-LSP 1.26.0-5.5~preview
A preview release of OCaml-LSP for the OCaml 5.5 series is available. Notable changes:
- A new
destructcustom request (#1583), intended to let clients such asocaml-eglottrigger the command directly rather than through a code action. - Configurable Merlin via build systems other than dune, through the
OCAMLLSP_PROJECT_BUILD_SYSTEMandOCAMLLSP_PROJECT_ROOTenvironment variables (#1581). - Long signatures returned by
signature-helpare now formatted withocamlformatfor improved readability (#1580).
For more details, see the full changelog below.
See full backstage
Fixes
- Improve the readability of signature-help for long signatures (#1580)
Features
-
Add
destructcustom request (#1583) -
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.