File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed
org.eclipse.lsp4j.debug/src/main/java/org/eclipse/lsp4j/debug Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -261,7 +261,15 @@ class OutputEventArguments {
261
261
String category;
262
262
/**
263
263
* The output to report.
264
- */
264
+ * <p >
265
+ * ANSI escape sequences may be used to influence text color and styling if
266
+ * `supportsANSIStyling` is present in both the adapter's `Capabilities` and
267
+ * the client's `InitializeRequestArguments`. A client may strip any
268
+ * unrecognized ANSI sequences.
269
+ * <p >
270
+ * If the `supportsANSIStyling` capabilities are not both true, then the
271
+ * client should display the output literally.
272
+ */
265
273
@NonNull
266
274
String output;
267
275
/**
@@ -913,6 +921,12 @@ class InitializeRequestArguments {
913
921
* Since 1.59
914
922
*/
915
923
Boolean supportsStartDebuggingRequest;
924
+ /**
925
+ * The client will interpret ANSI escape sequences in the display of
926
+ * `OutputEvent.output` and `Variable.value` fields when
927
+ * `Capabilities.supportsANSIStyling` is also enabled.
928
+ */
929
+ Boolean supportsANSIStyling;
916
930
}
917
931
918
932
/**
@@ -2849,6 +2863,11 @@ class Capabilities {
2849
2863
* Since 1.65
2850
2864
*/
2851
2865
BreakpointMode [] breakpointModes;
2866
+ /**
2867
+ * The debug adapter supports ANSI escape sequences in styling of
2868
+ * `OutputEvent.output` and `Variable.value` fields.
2869
+ */
2870
+ Boolean supportsANSIStyling;
2852
2871
}
2853
2872
2854
2873
/**
You can’t perform that action at this time.
0 commit comments