I am pleased to announce new releases of Merlin (5.3-502
and 4.18-414
) and OCaml-LSP (1.20.1
and 1.20.1-4.14
).
The Merlin releases bundle a handful of fixes while the LSP releases focus on adding more custom queries. These custom queries will enable tailored LSP clients to provide the same rich OCaml editing features as the one provided by the original Merlin modes for Emacs and Vim.
Latest releases of vscode-ocaml-platform
already provide two new commands: Construct
and Jump
that respectively provide a better UI to fill typed holes with values and jump to specific parent nodes. Search by type/polarity and a command to get the type of growing and shrinking selections will also be available in the future.
Merlin changelog
merlin 5.3
- merlin binary
- Respect the
EXCLUDE_QUERY_DIR
configuration directive when looking for cmt
files (#1854) - Fix occurrences bug in which relative paths in index files are resolved against the
PWD rather than the SOURCE_ROOT (#1855) - Fix exception in polarity search (#1858 fixes #1113)
- Fix jump to
fun
targets not working (#1863, fixes #1862) - Fix type-enclosing results instability. This reverts some overly
aggressive deduplication that should be done on the client side. (#1864) - Fix occurrences not working when the definition comes from a hidden source
file (#1865)
- Respect the
OCaml-LSP changelog
1.20.1
Features
- Add custom
ocamllsp/typeSearch
request (#1369) - Make MerlinJump code action configurable (#1376)
- Add custom
ocamllsp/jump
request (#1374)
Fixes
- Fix fd leak in running external processes for preprocessing (#1349)
- Fix prefix parsing for completion of object methods (#1363, fixes #1358)
- Remove some duplicates in the
selectionRange
answers (#1368) - Deactivate the
jump
code actions by default. Clients can enable them with
themerlinJumpCodeActions
configuration option. Alternatively a custom
request is provided for ad hoc use of the feature. (#1411)