Thicket thicket
ocaml
REPOS 9

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

W37.2026 · 7–13 Sepocaml/ocaml-lsp

Features

  • Whole-call completions (merged): Functions with ≥2 labelled or optional arguments now offer a secondary (call) completion that inserts a snippet with independent _ placeholders per argument. Snippet-capable clients receive one edit; others get plain text. #2199

  • Constructor application completions (merged): Constructors with payloads offer parenthesized application variants with _ slots (e.g. Pair _ _ for int * bool). Name-only entries remain and sort first. Available in expression and pattern positions. #2212

  • Go to Implementation for interface types (merged): textDocument/implementation resolves type-declaration names in .mli files to their .ml counterparts, including nested modules, functor results, includes, and aliases. Fixes #1163. #2074

  • Interactive destruct bodies (merged): destruct and destruct-line generate branch bodies as snippet placeholders, allowing tab-navigation between them. Requires workspace.workspaceEdit.snippetEditSupport; plain edits are the fallback. #2204

  • Semantic highlighting: parameters and built-in types (merged): Function parameters now emit the standard parameter token type with custom labeled/optional modifiers. Predeclared types (int, string, etc.) receive the defaultLibrary modifier; shadowed names are not marked. #1857, #1858

  • Odoc document links (open): Implements textDocument/documentLink and documentLink/resolve so {!ref} and {{:url} text} in doc comments become clickable links in editors. Cross-module and stdlib references resolve once the project is built. #2139

Fixes

  • Overlapping with type tokens (merged): Constrained names in with type equations and destructive substitutions were emitted twice (long identifier + type-declaration name). The duplicate token is no longer produced. #2206

  • Inline edit crash avoidance (merged): The Inline code action now checks applicability before constructing replacement edits, preventing a crash on deeply recovered expressions with no recognized uses. #2041