Thicket thicket
ocaml
REPOS 1

Tools covers builds, package management, editors, documentation and JavaScript compilation.

W35.2026 · 24–30 Augocaml/ocaml-lsp

Features

  • Document and range formatting now support ocp-indent. Formatter selection walks up from the document directory to the workspace root; .ocamlformat takes precedence over .ocp-indent. (#2148)
  • textDocument/onTypeFormatting is implemented for OCaml and ocamllex files via a persistent ocp-indent-rpc helper. Newline-triggered requests update only the new line's leading whitespace; missing helpers degrade to no edits. (#1986)

Compatibility

  • workspace/symbol, textDocument/codeLens, textDocument/signatureHelp, textDocument/selectionRange, textDocument/rename, and workspace/workspaceFolders now accept the nullable and variant result shapes defined by LSP 3.18. (#2154, #2153, #2152, #2151, #2025)
  • Merlin diagnostic relatedInformation locations were emitted with one-based line numbers instead of zero-based LSP positions. Reported by Alizter; closed 2026-08-31. (#2145)

Fixes

  • textDocument/inlayHint responses are now filtered to the client-requested range. Hints whose insertion positions fall outside the viewport are no longer returned. (#2155)
  • Edit ranges for replacements ending with a newline now advance the end position to the next line. Previously the trailing newline was discarded, causing ranges to end on the prior line. (#2159)
  • Destruct-line code actions now reject Merlin recovery locations whose endpoints escape the queried source line. This prevents edits targeting unrelated source or splitting UTF-8 scalars. (#2063)
  • ocamlformat-rpc startup negotiation failures no longer terminate the LSP session. The server reports the failure as a LogMessage and falls back to unformatted hover output. (#2132)