Releases: ocaml/ocaml-lsp
1.23.0
CHANGES:
Features
- Make
inlay-hint
for function parameters configurable (#1515) - Add custom
ocamllsp/jumpToTypedHole
to navigate through typed holes (#1516) - Add a code-action for combining pattern cases (just relaying on regex) (#1514)
- Allow (by configuration) shortening of diagnostics (just highlighting the first line) (#1513)
- Fix
yojson_of_t
forNullable_option
: serializeNone
asNull
instead of asserting false (#1525 fixes #1524)
Fixes
- Support for
class
,class type
,method
andproperty
forDocumentSymbol
query (#1487 fixes #1449) - Fix
inlay-hint
for function parameters (#1515) - More precise diagnostics in the event of a failed identifier search (
Definition_query
) (#1518) - Remove
ocamlformat
application afterdestruct
(that remove some useful parenthesis) (#1519)
1.21.0-4.14
CHANGES:
Features
-
Make
inlay-hint
for function parameters configurable (#1515) -
Add custom
ocamllsp/jumpToTypedHole
to navigate through typed holes (#1516) -
Add a code-action for combining pattern cases (just relaying on regex) (#1514)
-
Allow (by configuration) shortening of diagnostics (just highlighting the first line) (#1513)
-
Fix
yojson_of_t
forNullable_option
: serializeNone
asNull
instead of asserting false (#1525 fixes #1524)
Fixes
-
Support for
class
,class type
,method
andproperty
forDocumentSymbol
query (#1487 fixes #1449) -
Fix
inlay-hint
for function parameters (#1515) -
More precise diagnostics in the event of a failed identifier search (
Definition_query
) (#1518) -
Remove
ocamlformat
application afterdestruct
(that remove some useful parenthesis) (#1519) -
Add a new server option
standardHover
, that can be used by clients to
disable the default hover provider. WhenstandardHover = false
textDocument/hover
requests always returns with empty result. (#1416)
1.22.0
1.21.0
1.20.1-4.14
CHANGES:
Fixes
- 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)
1.20.1
1.20.0-4.14
CHANGES:
Features
-
Add custom
ocamllsp/typeSearch
request (#1369) -
Make MerlinJump code action configurable (#1376)
-
Add custom
ocamllsp/jump
request (#1374)
Fixes
1.20.0
CHANGES:
Features
-
Add custom
ocamllsp/typeSearch
request (#1369) -
Make MerlinJump code action configurable (#1376)
-
Add custom
ocamllsp/jump
request (#1374)
Fixes
1.19.0
1.18.0
CHANGES:
Features
-
Introduce a configuration option to control dune diagnostics. The option is
calledduneDiganostics
and it may be set to{ enable: false }
to disable
diagnostics. (#1221) -
Support folding of
ifthenelse
expressions (#1031) -
Improve hover behavior (#1245)
Hovers are no longer displaye on useless parsetree nodes such as keywords,
comments, etc.Multiline hovers are now filtered away.
Display expanded ppx's in the hover window.
-
Improve document symbols (#1247)
Use the parse tree instead of the typed tree. This means that document
symbols will work even if the source code doesn't type check.Include symbols at arbitrary depth.
Differentiate functions / types / variants / etc.
This now includes PPXs like
let%expect_test
orlet%bench
in the outline. -
Introduce a
destruct-line
code action. This is an improved version of the
olddestruct
code action. (#1283) -
Improve signature inference to only include types for elements that were
absent from the signature. Previously, all signature items would always be
inserted. (#1289) -
Add an
update-signature
code action to update the types of elements that
were already present in the signature (#1289) -
Add custom
ocamllsp/merlinCallCompatible
request (#1265) -
Add custom
ocamllsp/typeEnclosing
request (#1304)
Fixes
-
Detect document kind by looking at merlin's
suffixes
config.This enables more lsp features for non-.ml/.mli files. Though it still
depends on merlin's support. (#1237) -
Correctly accept the
--clientProcessId
flag. (#1242) -
Disable automatic completion and signature help inside comments (#1246)
-
Includes a new optional/configurable option to toggle syntax documentation. If
toggled on, allows display of syntax documentation on hover tooltips. Can be
controlled via environment variables and by GUI for VS code. (#1218) -
For completions on labels that the LSP gets from merlin, take into account
whether the prefix being completed starts with~
or?
. Change the label
completions that start with?
to start with~
when the prefix being
completed starts with~
. (#1277) -
Stop generating inlay hints on generated code (#1290)
-
Fix parenthesizing of function types in
SignatureHelp
(#1296) -
Fix syntax documentation rendering (#1318)