VOCaml is a VS Code extension providing helpers for working with OCaml code. Currently, it has three commands:
VOCaml is a companion to ppx_minidebug
, but it can be used for its own merits.
Currently, VOCaml retrieves types from the first entry of hover boxes, and uses regular expressions for parsing. Its implementation is simple, but that leads to some restrictions:
as
-alias bindings are supported.let foo bar baz = ...
, only single-identifier arguments are supported, but they can be labeled or optional. E.g. let foo ?bar ~baz () = ...
.Currently, VOCaml has just one exposed setting:
vocaml.fileLocationPattern
: a regular expression for detecting file positions.Adds labeled (and optional without defaults) arguments, unit value arguments. Fixes multiline types from hovers.
Initial release of VOCaml.