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/elsebranch 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
~xto~x:_xfor labelled parameters so call sites likef ~x:1still 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-rpcis 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
stdune3.25.