Releases: ocaml/ocaml-lsp
1.16.1
1.16.0-4.14
CHANGES:
Fixes
-
Disable code lens by default. The support can be re-enabled by explicitly
setting it in the configuration. (#1134) -
Fix initilization of
ocamlformat-rpc
in some edge cases when ocamlformat is
initialized concurrently (#1132) -
Kill unnecessary
$ dune ocaml-merlin
with SIGTERM rather than SIGKILL
(#1124) -
Refactor comment parsing to use
odoc-parser
andcmarkit
instead of
octavius
andomd
(#1088)This allows users who migrated to omd 2.X to install ocaml-lsp-server in the
same opam switch.We also slightly improved markdown generation support and fixed a couple in
the generation of inline heading and module types. -
Allow opening documents that were already open. This is a workaround for
neovim's lsp client (#1067) -
Disable type annotation for functions (#1054)
-
Respect codeActionLiteralSupport capability (#1046)
-
Fix a document syncing issue when utf-16 is the position encoding (#1004)
-
Disable "Type-annotate" action for code that is already annotated.
(#1037), fixes
#1036 -
Fix semantic highlighting of long identifiers when using preprocessors
(#1049, fixes
#1034) -
Fix the type of DocumentSelector in cram document registration (#1068)
-
Accept the
--clientProcessId
command line argument. (#1074) -
Accept
--port
as a synonym for--socket
. (#1075) -
Fix connecting to dune rpc on Windows. (#1080)
Features
1.15.1-5.0
1.15.1-4.14
1.15.0-5.0
CHANGES:
Features
-
Add support for OCaml 5.0
-
Enable semantic highlighting
support by default (#933) -
Support connecting over pipes and socket. Pipes on Windows aren't yet
supported (#946)More
about communication channels in LSP specification. -
Re-enable
ocamlformat-rpc
for formatting code snippets (but not files and
not on Windows) (#920, #939)One needs to have installed either
ocamlformat
package version > 0.21.0 or,
otherwise,ocamlformat-rpc
package. Note that previouslyocamlformat-rpc
came in a standalone OPAM package, but sinceocamlformat
version > 0.21.0,
it comes withinocamlformat
package. -
Add custom
ocamllsp/hoverExtended
request (#561) -
Support utf-8 position encoding clients (#919)
More about position encoding in LSP specification.
-
Show unwrapped module alias types on hovering over module names. This is due
to upgrading to merlin 4.7 and using merlin'sverbosity=smart
by default
(#942)
Fixes
1.15.0-4.14
CHANGES:
Features
-
Enable semantic highlighting
support by default (#933) -
Support connecting over pipes and socket. Pipes on Windows aren't yet
supported (#946)More
about communication channels in LSP specification. -
Re-enable
ocamlformat-rpc
for formatting code snippets (but not files and
not on Windows) (#920, #939)One needs to have installed either
ocamlformat
package version > 0.21.0 or,
otherwise,ocamlformat-rpc
package. Note that previouslyocamlformat-rpc
came in a standalone OPAM package, but sinceocamlformat
version > 0.21.0,
it comes withinocamlformat
package. -
Add custom
ocamllsp/hoverExtended
request (#561) -
Support utf-8 position encoding clients (#919)
More about position encoding in LSP specification.
-
Show unwrapped module alias types on hovering over module names. This is due
to upgrading to merlin 4.7 and using merlin'sverbosity=smart
by default
(#942)
Fixes
1.15.0+5.0preview1
CHANGES:
Features
-
Add support for OCaml 5.0
-
Semantic highlighting support is enabled by default (#933)
-
Re-enable
ocamlformat-rpc
for formatting code snippets (but not files) (#920, #939)One needs to have either
ocamlformat
version > 0.21.0 or, otherwise,
ocamlformat-rpc
package installed. -
Add custom ocamllsp/hoverExtended request (#561)
-
Support utf-8 position encoding clients (#919)
-
Upgrade to merlin 4.7 and use merlin's
verbosity=smart
by default, which
allows unwrapping module alias types (#942)
Fixes
1.14.2
CHANGES:
Fixes
-
Fix random requests failing after switching documents (#904, fixes #898)
-
Do not offer related diagnostic information unless the user enables in client
capabilities (#905) -
Do not offer diagnostic tags unless the client supports them (#909)
-
Do not attach extra data to diagnostics unless the client supports this
(#910) -
Use /bin/sh instead of /bin/bash. This fixes ocamllsp on NixOS
1.14.1
1.14.0
CHANGES:
Features
-
Code action for inlining let bindings within a module or expression. (#847)
-
Tag "unused code" and "deprecated" warnings, allowing clients to better
display them. (#848) -
Refresh merlin configuration after every dune build in watch mode (#853)
Fixes
-
Respect
showDocument
capabilities. Do not offer commands or code actions
that rely on this request without client support. (#836) -
Fix signatureHelp on .mll files: avoid "Document.dune" exceptions