- Trim whitespace when running
Evaluate Selection
command (#1100) - Encode URI when sending the
switchImplIntf
request (#983)
- Reorder sandbox buttons (#1083)
- Add more known versions of ocamllsp
- Update known ocamllsp versions (#1072)
-
Add
ocaml.server.args
configuration option to pass extra arguments to the language server, i.e. ocamllsp (#1042) -
Fix AST Explorer not displaying anything with error "Blocked script execution" (#1050)
-
Change the
ocaml.useOcamlEnv
setting to only enableocaml-env
usage for opam commands if it is available on the system (#978)
-
Fix syntax highlighting for let bindings with type annotations (#991)
-
Add support for
${firstWorkspaceFolder}
as a placeholder variable in configuration files (#1004)
- Add more known versions of ocamllsp
-
Upgrade to
vscode-languageclient
v8.0.1. This may fix some stability problems -
Revert "Add minimal support as a Web Extension (#962)" because of regressions
- Update known ocamllsp versions (#972)
-
"Reveal AST Node" command now does not fail if the AST Explorer is not open but opens it and then reveals the node (#964)
-
Fix reading
ocaml.repl.useUtop
setting (#957) -
Add minimal support as a Web Extension (#962)
- Correctly handle empty switches (#940)
- Add arrays to auto closing pairs (#946)
- Add indentation rules for comments (#928)
-
Fix external syntax highlighting for embedded ocaml source in comments (#906)
-
Add
ocaml.repl.useUtop
setting to control whether to use Utop for the REPL (#911)
- Add the possibility to generate and show the documentation of an installed package right into VSCode. (#771)
- Fix automatic closing of files without an extension (#887)
- Restore compatibility with opam 2.0.x (#884)
- Fix dune subdir stanza syntax highlighting (#870)
- Improve dune variable syntax highlighting. Add highlighting for
env
andbin-available
variables. (#872)
- Make the check for out of date ocamllsp more conservative. It will no longer alert the user unless the extension is certain an upgrade is possible (#859)
-
Dune syntax highlighting fix (#742)
The syntax for dune files has been re-written from scratch for a more correct implementation. Every dune stanza documented by Dune is now supported, and only the correct fields in each stanza are recognized.
-
Fix the detection of opam's root directory when no switch is detected (#831)
-
Add support for opening compilation artifacts in human-readable form in the editor (#798)
Currently supported artifacts include
.cmi
,.cmt(i)
,.cmo
,.cma
,.cmx(a/s)
, and.bc
files.To learn more about these files, see: https://ocaml.org/manual/comp.html
-
Warn if the extension sees not the latest OCaml-LSP version compatible with the OCaml distribution installed in the current sandbox.
-
Highlighted the UNREACHABLE element in cram .t files (#754)
-
Activate extension on cram files, or when the workspace contains dune-workspace or dune files. (#750)
-
Add commands
Jump to Next Typed Hole
(shortcut:Alt + L
) andJump to Previous Typed Hole
(shortcut:Alt + Shift + L
)What typed holes are
Merlin has a concept of "typed holes" that are syntactically represented as
_
. Files that incorporate typed holes are not considered valid OCaml, but Merlin and OCaml-LSP support them. One example when such typed holes can occur is when one "destructs" a value, e.g., destructing(Some 1)
will generate codematch Some 1 with Some _ -> _ | None -> _
. While the first underscore is a valid "match-all"/wildcard pattern, the rest of underscores are typed holes that one needs to replace with valid OCaml code. These new commands help to navigate easily from one hole to another (#643) -
Rename the extension's section in VS Code Settings from
OCaml configuration
toOCaml Platform
(#674) -
Add
ocaml.server.extraEnv
configuration option to pass extra environment variables to the language server, i.e., OCaml-LSP (#674) -
Parsetree exploration and development tools. It is now possible to explore the structure of the parsetree in a custom editor. Additionally, it is possible to view preprocessed source of any OCaml source file (when applicable). Full functionality is available only for dune projects. (#666)
-
Add commands
Show OCaml Language Server Output
,Show OCaml Platform Extension Output
, andShow OCaml Commands Output
. (#745) -
Fix highlighting of escaped odoc source code braces (#690)
-
opam exec
is now called with--set-switch
flag; this is useful when we launch a terminal within a certain sandbox set in the extension (#744, fixes #655) -
The currently active OPAM switch in the workspace folder (project root) is shown first in the list of sandboxes when selecting a sandbox. (#751)
-
Show a different icon for the currently active OPAM switch in the "OPAM Switches" tree view (#751)
- Fix inclusion of files in extension package
- Fix showing error message if ocaml-lsp is missing (#586)
-
Fix switching between implementation/interface (#561)
-
Stop automatically highlighting suffixed META files (#565)
-
Revert automatic installation of platform tools
The feature is not flexible enough and caused issues with multiple users. We will work on making it more flexible and fit more workflows before releasing it.
-
Highlight OCaml source code inside Cinaps comments (#547)
-
Show the output of shell commands in an output channel. The output channel is automatically focused when running a package management command from the OCaml activity tab (#541)
-
Fix highlighting of float literals with a trailing decimal point (#548)
-
Ask for confirmation when removing opam packages or switches (#551)
-
Fixed an issue when uninstalled Opam packages still appear in the
roots
field of Opam'sswitch-state
file (#517) -
Fixed detection of local Opam switch on Windows (#518)
-
vscode-ocaml-platform
now depends onocaml-lsp-server.1.3.0
-
Add a command to open a Utop REPL in the current sandbox (#504)
-
Add a code evaluation command that sends selected expressions to the REPL (#504)
-
Install OCaml Platform tools automatically (#463)
The platform tools (a.k.a toolchain) are installed in a private opam switch that should only be used by
vscode-ocaml-platform
.
-
Highlight token aliases in Menhir associativity declarations (#473)
-
Activate the extension when workspace contains OCaml, Reason sources or project marker files. (#482)
-
Add
ocaml.useOcamlEnv
setting to determine whether to useocaml-env
for opam commands from OCaml for Windows (#481) -
Fix terminal creation when using default shell and arguments (#484)
-
Add an OCaml activity tab (#486)
The activity tab provides three views: the available switches, the build commands and an Help and Feedback section with links to community channels.
-
Support
eliom
andeliomi
file extensions (#487) -
Fix ocaml/ocaml-lsp#358: automatic insertion of an inferred interface was inserting code incorrectly on the second switch to the newly created (unsaved)
mli
file. If the newmli
file isn't empty, we don't insert inferred interface (#498) -
Add a new command "Dune: open current dune file", which is available in the command palette if there is an open file. The command opens the dune file that is located in the same folder as the open file or creates the dune file in a draft mode (not yet saved on the disk). (#499)
-
Improve highlighting of type parameters and
module type of
(#461) -
Fix highlighting of escaped character literals (#467)
-
Fix highlighting of comments that contain strings with escaped quotes (#469)
-
Initialize extension even if language server fails to start (#471)
-
Detection of local Opam and Esy sandboxes (#445)
The detection will prioritize Opam local switches, then Esy sandboxes (that are detected with the directory
_esy
), and will fallback to the global environment sandbox if none of these are found.
- Highlight
rec
keyword in OCaml mli files for recursive modules (#434) - Highlight
cram
stanza in dune-project files (#441) - Fix reason highlighting of let extensions (#447)
- Improve highlighting of Menhir new syntax (#450)
- Improve Menhir syntax highlighting (#455)
- Add
Alt + P
keyboard shortcut for infer interface code action (#448) - Infer interface when switching to a non-existing interface file (#437)
- Stop highlighting ocaml unit/array/list literals with bold (#416)
- Add a snippet
struct end
with prefixstruct
(#420) - Only restart the language server for the
ocaml.server.restart
command (#426) - Use highlighting for character literals which is consistent with other languages in VS Code (#428)
- Allow using
${workspaceFolder:folder_name}
placeholder variables in sandbox configurations for portable settings.json files (#424) - Fix OCaml problem matcher for warning codes and error messages without characters (#429)
- Fix sandbox functionality when a folder is not opened (#409)
- Remove duplicate esy sandboxes from package manager selection (#412)
- Fix incomplete error message for missing commands (#400)
- Fix highlighting of quoted string literals that contain quotes (#403)
- Fix path handling for global sandboxes on Windows (#401)
- Fix bug that prevented the extension from initializing properly when installed from the marketplace (#398)
- Replace "Switch implementation/interface" navigator button with a custom icon (#383)
- Add
Alt + D
keyboard shortcut for destruct code action (#384)
- Consistent binding operator highlighting in OCaml files (#365)
- Switch between implementation and interface files using
Alt + O
. This requires updating ocamllsp (#328)
- Highlight dashes in PKG names for .merlin files (#349)
- Make .ocamlformat syntax highlighting more distinct (#350)
- Improve highlighting of path elements and strings in .merlin files (#355)
- Fix highlighting of comments that contain quoted string literals (#363)
- Fix highlighting of rec keyword in type-annotated functions (#364)
- Fix interaction between character literals and comments/escaped quotes in OCaml files (#348)
- Highlight method keyword in ocaml interface (#340)
- Add support for opam template file (#342)
- Improve highlighting of labels and attributes/extensions in OCaml files (#343)
- Add esy.json schema validation (#344)
- Add the option to use a custom sandbox with a configurable command template (#322)
- Fix Reason syntax highlighting of module extension (#335)
- Fix syntax highlighting of empty comments (#276)
- Fix syntax highlighting of floating attributes (#281)
- Improve highlighting of external declarations (#282)
- Highlight unprefixed opam files (#284)
- Fix syntax highlighting of
module type of
(#285) - Fix syntax highlighting of module constraints (#286)
- Fix syntax highlighting of lazy bindings (#287)
- Add syntax highlighting for new ocamlformat values:
after-when-possible
,before-except-val
, andunset
(#288) - Fix Reason syntax highlighting of binding operators (#291)
- Fix Reason syntax highlighting of type extensions (#292)
- Improve syntax highlighting of OCaml comments that contain strings (#289)
- Fix Reason syntax highlighting of recursive modules (#295)
- Improve automatic indentation of parentheses (#308)
- Add highlighting for locally abstract types in OCaml files
- Add highlighting for OASIS files
- Improve OCamlbuild highlighting
- Add dune task provider
- Add commands
ocaml.open-terminal
andocaml.open-terminal-select
to open a terminal in a sandbox - Add
ocaml.trace.server
configuration option for the verbosity of the language server logs. - Add command
ocaml.server.restart
to restart the language server - Fix indentation rules for let-in expressions (#272)
- Fix faulty detection of esy sandboxes (#212)
- Add support for Dune formatting in sandboxes
- Add .mld syntax highlighting
- Add highlighting for Cppo directives in OCaml files
- Add highlighting for more toplevel and topfind directives in OCaml files
- OCaml problem matcher now understands multi line errors emitted by 4.09 (#229)
- Show statusbar item for current toolchain
- Fix Dune formatting for unsaved files
- Add Cram test syntax highlighting
- Add ATD syntax highlighting
- Add formatting for Dune files with format-dune-file
- Fix errors by the lsp server stealing focus from the editor to the output window.
- Improve ocamllex syntax highlighting
- Improve opam syntax highlighting
- Fix bugs in ocaml and ocamllex syntax highlighting
- Add OCamlFormat syntax highlighting
- Add dune-project syntax highlighting
- Add dune-workspace syntax highlighting
- Add dune snippets
- Add dune-project snippets
- Add META syntax highlighting
- Remove
ocaml.lsp.path
configuration option - Introduce
ocaml.sandbox
configuration option to set the toolchain - Introduce a
ocaml.select-sandbox
command for selecting the sandbox
- Add syntax highlighting and basic language support for ocamlyacc/menhir sources.
- Improve syntax highlighting of OCaml sources
- Remove auto closing for single quotes and angled brackets.
- Add OCaml indent rules
- Add auto-closing support for characters, object types
- Fix wonky auto-closing behavior of comments
- Add ocamllex syntax highlighting
- Add an OCaml problem matcher
- Add OCaml snippets
- Add Reason syntax highlighting
- Fix plugin icon URL
- Initial release