Skip to content

1.18.0

Compare
Choose a tag to compare
@voodoos voodoos released this 05 Jul 16:02
· 45 commits to master since this release
58c71c7

CHANGES:

Features

  • Introduce a configuration option to control dune diagnostics. The option is
    called duneDiganostics 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 or let%bench in the outline.

  • Introduce a destruct-line code action. This is an improved version of the
    old destruct 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)

  • Fix document syncing (#1278, #1280, fixes #1207)

  • Stop generating inlay hints on generated code (#1290)

  • Fix parenthesizing of function types in SignatureHelp (#1296)

  • Fix syntax documentation rendering (#1318)