Skip to content

Commit 62b261e

Browse files
committed
debug protocol: add 'supportsValueEscaping' capability
1 parent 95a6dca commit 62b261e

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/vs/workbench/parts/debug/common/debugProtocol.d.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ declare module DebugProtocol {
654654
/** Response to 'setVariable' request. */
655655
export interface SetVariableResponse extends Response {
656656
body: {
657-
/** The new value of the variable. */
657+
/** The new value of the variable. See capability 'supportsValueEscaping' for details about how to treat newlines in multi-line strings. */
658658
value: string;
659659
/** The type of the new value. Typically shown in the UI when hovering over the value. */
660660
type?: string;
@@ -756,7 +756,7 @@ declare module DebugProtocol {
756756
/** Response to 'evaluate' request. */
757757
export interface EvaluateResponse extends Response {
758758
body: {
759-
/** The result of the evaluate request. */
759+
/** The result of the evaluate request. See capability 'supportsValueEscaping' for details about how to treat newlines in multi-lines strings. */
760760
result: string;
761761
/** The optional type of the evaluate result. */
762762
type?: string;
@@ -886,6 +886,8 @@ declare module DebugProtocol {
886886
additionalModuleColumns?: ColumnDescriptor[];
887887
/** Checksum algorithms supported by the debug adapter. */
888888
supportedChecksumAlgorithms?: ChecksumAlgorithm[];
889+
/** The debug adapter will be responsible for escaping newlines in variable values and evaluation results, and the client will display them as-is. If missing or false the client will escape newlines as needed. */
890+
supportsValueEscaping?: boolean;
889891
}
890892

891893
/** An ExceptionBreakpointsFilter is shown in the UI as an option for configuring how exceptions are dealt with. */
@@ -1059,7 +1061,7 @@ declare module DebugProtocol {
10591061
export interface Variable {
10601062
/** The variable's name. */
10611063
name: string;
1062-
/** The variable's value. For structured objects this can be a multi line text, e.g. for a function the body of a function. */
1064+
/** The variable's value. This can be a multi-line text, e.g. for a function the body of a function. See capability 'supportsValueEscaping' for details about how to treat newlines in multi-line strings. */
10631065
value: string;
10641066
/** The type of the variable's value. Typically shown in the UI when hovering over the value. */
10651067
type?: string;

0 commit comments

Comments
 (0)