Skip to content

Commit

Permalink
Add supportsANSIStyling capabilities to allow colorization of text fr…
Browse files Browse the repository at this point in the history
…om debug adapters
  • Loading branch information
jansorg committed Jan 7, 2025
1 parent d027b14 commit b51afd4
Showing 1 changed file with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,15 @@ class OutputEventArguments {
String category;
/**
* The output to report.
*/
* <p>
* ANSI escape sequences may be used to influence text color and styling if
* `supportsANSIStyling` is present in both the adapter's `Capabilities` and
* the client's `InitializeRequestArguments`. A client may strip any
* unrecognized ANSI sequences.
* <p>
* If the `supportsANSIStyling` capabilities are not both true, then the
* client should display the output literally.
*/
@NonNull
String output;
/**
Expand Down Expand Up @@ -913,6 +921,12 @@ class InitializeRequestArguments {
* Since 1.59
*/
Boolean supportsStartDebuggingRequest;
/**
* The client will interpret ANSI escape sequences in the display of
* `OutputEvent.output` and `Variable.value` fields when
* `Capabilities.supportsANSIStyling` is also enabled.
*/
Boolean supportsANSIStyling;
}

/**
Expand Down Expand Up @@ -2849,6 +2863,11 @@ class Capabilities {
* Since 1.65
*/
BreakpointMode[] breakpointModes;
/**
* The debug adapter supports ANSI escape sequences in styling of
* `OutputEvent.output` and `Variable.value` fields.
*/
Boolean supportsANSIStyling;
}

/**
Expand Down

0 comments on commit b51afd4

Please sign in to comment.