OCaml-LSP 1.25.0

This release of ocaml-lsp-server introduces support for .mlx files, new custom requests, and configuration updates for code-lens.

Features

  • .mlx Support: Added support for .mlx files, including diagnostics, code actions, hover, and formatting via ocamlformat-mlx.
  • New Custom Requests: Added typeExpression, locate, and phrase requests to the server.
  • Code-Lens Configuration: code-lens for nested let bindings is now configurable.

Fixes and Improvements

  • Configuration Fallback: The server now falls back to .merlin configuration if a dune-project file is missing, provided dot-merlin-reader is installed.
  • Metrics: Improved the precision of timestamps for collected metrics.
See full changelog

Features

  • Make code-lens for nested let bindings configurable (#1567)
  • Add support for .mlx files, including formatting via ocamlformat-mlx and most OCaml LSP features (diagnostics, code actions, hover, etc.) (#1528)
  • Add typeExpression custom request (#1576)
  • Add locate custom request (#1576)
  • Add phrase custom request (#1576)

Fixes

  • Improve precision of collected metrics timestamps. (#1565)
  • Fallback on .merlin configuration if no dune-project file is found and if dot-merlin-reader is installed. (#1563, fixes #1522)