Skip to content

Commit 6bf61ca

Browse files
authored
Merge pull request #505 from microsoft/connor4312/prep-1.69
chore: prep for 1.69
2 parents 14f5a0d + 5f30efc commit 6bf61ca

File tree

2 files changed

+35
-15
lines changed

2 files changed

+35
-15
lines changed

changelog.md

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ sectionid: changelog
88

99
* 1.69.x
1010
* Clarify the flow diagram to start a debug session
11+
* Add `supportsANSIStyling` capabilities to allow colorization of text from debug adapters
1112

1213
* 1.68.x
1314
* Add `locationReference`s to Variable-related data types to allow navigation to declarations, and a corresponding `locations` request.

specification.md

+34-15
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,14 @@ interface OutputEvent extends Event {
413413

414414
/**
415415
* The output to report.
416+
*
417+
* ANSI escape sequences may be used to influence text color and styling if
418+
* `supportsANSIStyling` is present in both the adapter's `Capabilities` and
419+
* the client's `InitializeRequestArguments`. A client may strip any
420+
* unrecognized ANSI sequences.
421+
*
422+
* If the `supportsANSIStyling` capabilities are not both true, then the
423+
* client should display the output literally.
416424
*/
417425
output: string;
418426

@@ -475,7 +483,7 @@ interface OutputEvent extends Event {
475483
* This reference shares the same lifetime as the `variablesReference`. See
476484
* 'Lifetime of Object References' in the Overview section for details.
477485
*/
478-
locationReference?: string;
486+
locationReference?: number;
479487
};
480488
}
481489
```
@@ -1047,6 +1055,13 @@ interface InitializeRequestArguments {
10471055
* Client supports the `startDebugging` request.
10481056
*/
10491057
supportsStartDebuggingRequest?: boolean;
1058+
1059+
/**
1060+
* The client will interpret ANSI escape sequences in the display of
1061+
* `OutputEvent.output` and `Variable.value` fields when
1062+
* `Capabilities.supportsANSIStyling` is also enabled.
1063+
*/
1064+
supportsANSIStyling?: boolean;
10501065
}
10511066
```
10521067

@@ -2459,7 +2474,7 @@ interface SetVariableResponse extends Response {
24592474
* This reference shares the same lifetime as the `variablesReference`. See
24602475
* 'Lifetime of Object References' in the Overview section for details.
24612476
*/
2462-
valueLocationReference?: string;
2477+
valueLocationReference?: number;
24632478
};
24642479
}
24652480
```
@@ -2662,7 +2677,7 @@ interface LoadedSourcesResponse extends Response {
26622677

26632678
### <a name="Requests_Evaluate" class="anchor"></a>:leftwards_arrow_with_hook: Evaluate Request
26642679

2665-
Evaluates the given expression in the context of the a stack frame.
2680+
Evaluates the given expression in the context of a stack frame.
26662681

26672682
The expression has access to any variables and arguments that are in scope.
26682683

@@ -2804,7 +2819,7 @@ interface EvaluateResponse extends Response {
28042819
* This reference shares the same lifetime as the `variablesReference`. See
28052820
* 'Lifetime of Object References' in the Overview section for details.
28062821
*/
2807-
locationReference?: string;
2822+
valueLocationReference?: number;
28082823
};
28092824
}
28102825
```
@@ -2921,7 +2936,7 @@ interface SetExpressionResponse extends Response {
29212936
* This reference shares the same lifetime as the `variablesReference`. See
29222937
* 'Lifetime of Object References' in the Overview section for details.
29232938
*/
2924-
valueLocationReference?: string;
2939+
valueLocationReference?: number;
29252940
};
29262941
}
29272942
```
@@ -3364,7 +3379,7 @@ interface LocationsArguments {
33643379
/**
33653380
* Location reference to resolve.
33663381
*/
3367-
locationReference: string;
3382+
locationReference: number;
33683383
}
33693384
```
33703385

@@ -3395,17 +3410,15 @@ interface LocationsResponse extends Response {
33953410
column?: number;
33963411

33973412
/**
3398-
* End line of the location. If no end line is given, then the end line is
3399-
* assumed to be the start line. The client capability `linesStartAt1`
3400-
* determines whether it is 0- or 1-based.
3413+
* End line of the location, present if the location refers to a range. The
3414+
* client capability `linesStartAt1` determines whether it is 0- or 1-based.
34013415
*/
34023416
endLine?: number;
34033417

34043418
/**
3405-
* End position of the location within `endLine`. It is measured in UTF-16
3406-
* code units and the client capability `columnsStartAt1` determines whether
3407-
* it is 0- or 1-based. If no end column is given, the last position in the
3408-
* end line is assumed.
3419+
* End position of the location within `endLine`, present if the location
3420+
* refers to a range. It is measured in UTF-16 code units and the client
3421+
* capability `columnsStartAt1` determines whether it is 0- or 1-based.
34093422
*/
34103423
endColumn?: number;
34113424
};
@@ -3650,6 +3663,12 @@ interface Capabilities {
36503663
* 'default' mode in gestures that set breakpoints.
36513664
*/
36523665
breakpointModes?: BreakpointMode[];
3666+
3667+
/**
3668+
* The debug adapter supports ANSI escape sequences in styling of
3669+
* `OutputEvent.output` and `Variable.value` fields.
3670+
*/
3671+
supportsANSIStyling?: boolean;
36533672
}
36543673
```
36553674

@@ -4199,7 +4218,7 @@ interface Variable {
41994218
* This reference shares the same lifetime as the `variablesReference`. See
42004219
* 'Lifetime of Object References' in the Overview section for details.
42014220
*/
4202-
declarationLocationReference?: string;
4221+
declarationLocationReference?: number;
42034222

42044223
/**
42054224
* A reference that allows the client to request the location where the
@@ -4211,7 +4230,7 @@ interface Variable {
42114230
* This reference shares the same lifetime as the `variablesReference`. See
42124231
* 'Lifetime of Object References' in the Overview section for details.
42134232
*/
4214-
valueLocationReference?: string;
4233+
valueLocationReference?: number;
42154234
}
42164235
```
42174236

0 commit comments

Comments
 (0)