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 destruct custom request (#1583), intended to let clients such as ocaml-eglot trigger the command directly rather than through a code action.
  • Configurable Merlin via build systems other than dune, through the OCAMLLSP_PROJECT_BUILD_SYSTEM and OCAMLLSP_PROJECT_ROOT environment variables (#1581).
  • Long signatures returned by signature-help are now formatted with ocamlformat for 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 destruct custom request (#1583)

  • Allow to configure merlin using build systems other than dune.

    If $OCAMLLSP_PROJECT_BUILD_SYSTEM environment variable is set then OCaml LSP will execute $OCAMLLSP_PROJECT_BUILD_SYSTEM ocaml-merlin command to get merlin configuration for a module. It is expected the command to communicate using merlin-dot-protocol.

    If $OCAMLLSP_PROJECT_ROOT environment variable is set then OCaml LSP will use it as a project root directory.