@@ -413,6 +413,14 @@ interface OutputEvent extends Event {
413
413
414
414
/**
415
415
* 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.
416
424
*/
417
425
output: string ;
418
426
@@ -475,7 +483,7 @@ interface OutputEvent extends Event {
475
483
* This reference shares the same lifetime as the `variablesReference`. See
476
484
* 'Lifetime of Object References' in the Overview section for details.
477
485
*/
478
- locationReference? : string ;
486
+ locationReference? : number ;
479
487
};
480
488
}
481
489
```
@@ -1047,6 +1055,13 @@ interface InitializeRequestArguments {
1047
1055
* Client supports the `startDebugging` request.
1048
1056
*/
1049
1057
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 ;
1050
1065
}
1051
1066
```
1052
1067
@@ -2459,7 +2474,7 @@ interface SetVariableResponse extends Response {
2459
2474
* This reference shares the same lifetime as the `variablesReference`. See
2460
2475
* 'Lifetime of Object References' in the Overview section for details.
2461
2476
*/
2462
- valueLocationReference? : string ;
2477
+ valueLocationReference? : number ;
2463
2478
};
2464
2479
}
2465
2480
```
@@ -2662,7 +2677,7 @@ interface LoadedSourcesResponse extends Response {
2662
2677
2663
2678
### <a name =" Requests_Evaluate " class =" anchor " ></a >:leftwards_arrow_with_hook : Evaluate Request
2664
2679
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.
2666
2681
2667
2682
The expression has access to any variables and arguments that are in scope.
2668
2683
@@ -2804,7 +2819,7 @@ interface EvaluateResponse extends Response {
2804
2819
* This reference shares the same lifetime as the `variablesReference`. See
2805
2820
* 'Lifetime of Object References' in the Overview section for details.
2806
2821
*/
2807
- locationReference ? : string ;
2822
+ valueLocationReference ? : number ;
2808
2823
};
2809
2824
}
2810
2825
```
@@ -2921,7 +2936,7 @@ interface SetExpressionResponse extends Response {
2921
2936
* This reference shares the same lifetime as the `variablesReference`. See
2922
2937
* 'Lifetime of Object References' in the Overview section for details.
2923
2938
*/
2924
- valueLocationReference? : string ;
2939
+ valueLocationReference? : number ;
2925
2940
};
2926
2941
}
2927
2942
```
@@ -3364,7 +3379,7 @@ interface LocationsArguments {
3364
3379
/**
3365
3380
* Location reference to resolve.
3366
3381
*/
3367
- locationReference: string ;
3382
+ locationReference: number ;
3368
3383
}
3369
3384
```
3370
3385
@@ -3395,17 +3410,15 @@ interface LocationsResponse extends Response {
3395
3410
column? : number ;
3396
3411
3397
3412
/**
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.
3401
3415
*/
3402
3416
endLine? : number ;
3403
3417
3404
3418
/**
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.
3409
3422
*/
3410
3423
endColumn? : number ;
3411
3424
};
@@ -3650,6 +3663,12 @@ interface Capabilities {
3650
3663
* 'default' mode in gestures that set breakpoints.
3651
3664
*/
3652
3665
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 ;
3653
3672
}
3654
3673
```
3655
3674
@@ -4199,7 +4218,7 @@ interface Variable {
4199
4218
* This reference shares the same lifetime as the `variablesReference`. See
4200
4219
* 'Lifetime of Object References' in the Overview section for details.
4201
4220
*/
4202
- declarationLocationReference? : string ;
4221
+ declarationLocationReference? : number ;
4203
4222
4204
4223
/**
4205
4224
* A reference that allows the client to request the location where the
@@ -4211,7 +4230,7 @@ interface Variable {
4211
4230
* This reference shares the same lifetime as the `variablesReference`. See
4212
4231
* 'Lifetime of Object References' in the Overview section for details.
4213
4232
*/
4214
- valueLocationReference? : string ;
4233
+ valueLocationReference? : number ;
4215
4234
}
4216
4235
```
4217
4236
0 commit comments