Thicket thicket
ocaml
REPOS 9

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

W47.2026 · 16–22 Novocaml/ocaml-lsp

Fixes

Open pull requests in OCaml LSP target code-action correctness and server lifecycle:

  • Extract local in conditionals: #2241 keeps the new binding inside the nearest if/else branch rather than hoisting it before the conditional.
  • Extract function: #2242 wraps the extracted call in parentheses so the result compiles as a single expression.
  • Combine cases: #2240 preserves literal | in right-hand sides and splits only at the case arrow, avoiding corruption of strings and function bodies.
  • Mark as unused: #2248 rewrites ~x to ~x:_x for labelled parameters so call sites like f ~x:1 still compile.
  • Document edits with U+FEFF: #2244 treats a mid-document zero-width no-break space as a regular character, keeping the server's text in sync with the editor.
  • Server early exit: #2252 allows the server to shut down cleanly when ocamlformat-rpc is absent and the editor exits before initialisation.
  • Let-syntax highlighting: #2238 reports that custom let-syntax loses semantic highlighting after upgrading to 1.28.1; disabling semantic highlighting in VS Code works around it.

Compatibility

  • 1.26.x with Dune 3.25: #2237 backports fixes so the 1.26 line (OCaml 5.4) builds with stdune 3.25.