Skip to content

DAP: group the output lines of an output event's group (start, startCollapsed and end) #2167

Done

Description

@lagergren

What

The DAP output event has an optional group:

  • start begins a group, shown expanded;
  • startCollapsed begins a group, shown collapsed;
  • end ends the current group.

Groups can nest. An adapter uses them for console.group() and console.groupCollapsed(), for instance, and VS Code shows them as collapsible, indented groups.

LSP4IJ's DAPClient.output ignores group, so grouped output prints flat, with the group headers looking like any other line.

Proposal

  • Indent: the lines of a group, per nesting level.
  • Fold: if feasible in the console, make a group foldable, and fold a startCollapsed group from the start.

LSP4J 1.0.0 has OutputEventArguments.getGroup().

Metadata

Metadata

Assignees

No one assigned

    Labels

    dapenhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions