Skip to content

DAP: link an output line to the source location that the debug adapter gives it #2166

Done

Description

@lagergren

What

The DAP output event can carry the source location that the output comes from: source, line, column, and since DAP 1.67 locationReference. A debug adapter can send them, for instance for the location of a console.log call. VS Code shows them as a link next to the output line.

LSP4IJ's DAPClient.output uses only category and output, so the location is dropped.

Proposal

When the event has a source and a line, print a link to that location after the text, opening the file at the line and column:

LSP4J 1.0.0, which LSP4IJ uses, has all these fields in OutputEventArguments.

Activity

  1. added
    enhancement
    dap
    on Nov 23, 2026
  2. added a commit that references this issue on Nov 25, 2026
    390129e
  3. added this to the 0.30.2 milestone on Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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