Thicket thicket
ocaml
REPOS 9

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

W30.2026 · 20–26 Julocaml/ocaml-lsp

Features

  • Open dune file code action (merged): A new code action searches parent directories for the nearest dune file and opens it via window/showDocument. Stops at dune-project or dune-workspace boundaries. #1817

  • Semantic highlighting: operator classification (merged): OCaml symbolic and word operators now emit the standard operator token type in bindings, applications, and signatures. Binding operators (let*, and*) are included. #1831

  • Dune event tracing (merged): The $/setTrace setting now emits $/logTrace notifications for Dune RPC connections, build events, and the dune ocaml-merlin configuration process. Off level computes nothing. #1899

Compatibility and Releases

  • LSP 3.18 spec update (merged): The bundled metamodel and generated OCaml types now target LSP 3.18.0, adding workspace text-document-content requests, code-action tags, snippet edits, and related protocol fields. No user-facing behaviour change expected. #1749

Fixes

  • Document-symbol selectionRange containment (merged): textDocument/documentSymbol now clips or falls back to the symbol range when Merlin returns an out-of-bounds selection. Prevents VS Code from rejecting the entire response. #1775

  • Polymorphic-variant backtick completion range (merged): Completion immediately after a lone backtick now produces a replacement range covering the typed character instead of a zero-width insert. Fixes #1427. #1823

  • Completion protocol compliance (merged): Sort keys widen past 10 000 items; non-ASCII identifiers and CRLF prefixes parse correctly; deprecation uses CompletionItem.tags when supported; polymorphic variants report Constructor when the client lacks EnumMember. #1883, #1886, #1903, #1887

  • Semantic-tokens capability negotiation (merged): The server advertises semanticTokensProvider only when the client declares support, requires the relative format and full-request capability, and honours the delta opt-out. #1851, #1853, #1856, #1859