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 8, 2025
1 parent 7a591f6 commit 17165d0
Showing 1 changed file with 24 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,13 @@ 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 @@ -915,6 +921,15 @@ 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.
* <p>
* This is an optional property.
* <p>
* Since 1.69
*/
Boolean supportsANSIStyling;
}

/**
Expand Down Expand Up @@ -2873,6 +2888,14 @@ class Capabilities {
* Since 1.65
*/
BreakpointMode[] breakpointModes;
/**
* The debug adapter supports ANSI escape sequences in styling of `OutputEvent.output` and `Variable.value` fields.
* <p>
* This is an optional property.
* <p>
* Since 1.69
*/
Boolean supportsANSIStyling;
}

/**
Expand Down

0 comments on commit 17165d0

Please sign in to comment.