Skip to content

Commit 7dd9628

Browse files
authored
Support for ANSI styling in debug output and variables (#501)
* Support for ANSI styling in debug output and variables Fixes #500 * fix typo
1 parent 892a56f commit 7dd9628

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

debugAdapterProtocol.json

+9-1
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@
361361
},
362362
"output": {
363363
"type": "string",
364-
"description": "The output to report."
364+
"description": "The output to report.\n\nANSI 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.\n\nIf the `supportsANSIStyling` capabilities are not both true, then the client should display the output literally."
365365
},
366366
"group": {
367367
"type": "string",
@@ -959,6 +959,10 @@
959959
"supportsStartDebuggingRequest": {
960960
"type": "boolean",
961961
"description": "Client supports the `startDebugging` request."
962+
},
963+
"supportsANSIStyling": {
964+
"type": "boolean",
965+
"description": "The client will interpret ANSI escape sequences in the display of `OutputEvent.output` and `Variable.value` fields when `Capabilities.supportsANSIStyling` is also enabled."
962966
}
963967
},
964968
"required": [ "adapterID" ]
@@ -3344,6 +3348,10 @@
33443348
"$ref": "#/definitions/BreakpointMode"
33453349
},
33463350
"description": "Modes of breakpoints supported by the debug adapter, such as 'hardware' or 'software'. If present, the client may allow the user to select a mode and include it in its `setBreakpoints` request.\n\nClients may present the first applicable mode in this array as the 'default' mode in gestures that set breakpoints."
3351+
},
3352+
"supportsANSIStyling": {
3353+
"type": "boolean",
3354+
"description": "The debug adapter supports ANSI escape sequences in styling of `OutputEvent.output` and `Variable.value` fields."
33473355
}
33483356
}
33493357
},

0 commit comments

Comments
 (0)