Thicket thicket
ocaml
REPOS 9

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

W36.2026 · 31 Aug – 6 Sepocaml/ocaml-lsp

Features

  • Merged: Construct completions now emit LSP snippets with ordered tab stops for snippet-capable clients (e.g. (B ${1:_})$0). Plain completions are preserved when snippets are unsupported or parsing fails. #2198
  • Open: Secondary whole-call completions for functions with ≥2 labelled/optional arguments, inserting target ~name:_ ?limit:_ _ with tab-through placeholders. Awaiting review. #2199

Fixes

  • Merged: textDocument/publishDiagnostics related locations now use zero-based LSP line numbers instead of the compiler's one-based values. Fixes #2145. #2163
  • Merged: Inline code-action skips edit construction when no recognized uses exist or all are shadowed, preventing a stack-overflow crash on malformed bindings. #2041
  • Merged: Destruct-line splits only top-level | alternatives, preserving nested or-patterns such as ((B | C), _) as valid match cases. #2194
  • Merged: Rename snapshots all open documents before dispatching the Merlin query, eliminating a race where a concurrent didChange produced Invalid_argument("index out of bounds"). #2062
  • Merged: textDocument/references now honours ReferenceContext.includeDeclaration = false, removing the declaration occurrence from results. #2164
  • Merged: Dune promotion tracking is keyed by diagnostic identity; overlapping promotions for the same source no longer trigger an assertion that aborts the diagnostic batch and disconnects the RPC instance. #2089