diff --git a/org.eclipse.lsp4j.debug/src/main/java/org/eclipse/lsp4j/debug/DebugProtocol.xtend b/org.eclipse.lsp4j.debug/src/main/java/org/eclipse/lsp4j/debug/DebugProtocol.xtend index 0a79363c..47321147 100644 --- a/org.eclipse.lsp4j.debug/src/main/java/org/eclipse/lsp4j/debug/DebugProtocol.xtend +++ b/org.eclipse.lsp4j.debug/src/main/java/org/eclipse/lsp4j/debug/DebugProtocol.xtend @@ -261,7 +261,13 @@ class OutputEventArguments { String category; /** * The output to report. - */ + *

+ * 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. + *

+ * If the `supportsANSIStyling` capabilities are not both true, then the client should display the output literally. + */ @NonNull String output; /** @@ -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. + *

+ * This is an optional property. + *

+ * Since 1.69 + */ + Boolean supportsANSIStyling; } /** @@ -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. + *

+ * This is an optional property. + *

+ * Since 1.69 + */ + Boolean supportsANSIStyling; } /**