You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DAP: decode ANSI colours in the debug console, and tell the debug adapter with supportsANSIStyling #2169
The capability: DAP has the client capability supportsANSIStyling in the initialize request. With it, the client says that it interprets ANSI escape sequences in the output it shows, such as colours and bold, so the adapter may send them.
LSP4IJ doesn't send it: its initialize request sends supportsInvalidatedEvent, supportsRunInTerminalRequest, supportsStartDebuggingRequest, supportsVariablePaging and supportsVariableType, but not this.
No decoding either: its debug console prints the output of output events as it comes, without decoding ANSI escape sequences. Nothing in the DAP console's path uses AnsiEscapeDecoder. So output that has them anyway, e.g. from a program that colours its logs, shows the raw escape codes.
Proposal
Decode: ANSI escape sequences in the output that the debug console prints, with IntelliJ's AnsiEscapeDecoder, as run consoles do.
Then advertise: send supportsANSIStyling: true.
LSP4J 1.0.0 has InitializeRequestArguments.setSupportsANSIStyling.
Activity
fix: the debug console of a DAP session no longer shows the debug ada…
feat: the debug console of a DAP session shows the ANSI colours of th…
feat: the debug console of a DAP session shows the ANSI colours of th…