Skip to content

Commit 4de1c84

Browse files
committed
Update OptionsSchema.json
1 parent 48af456 commit 4de1c84

File tree

3 files changed

+204
-38
lines changed

3 files changed

+204
-38
lines changed

package.json

Lines changed: 152 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1391,11 +1391,26 @@
13911391
"description": "%generateOptionsSchema.symbolOptions.moduleFilter.includeSymbolsOnDemand.description%",
13921392
"default": true
13931393
},
1394-
"csharp.debug.allowFastEvaluate": {
1394+
"csharp.debug.expressionEvaluationOptions.allowImplicitFuncEval": {
13951395
"type": "boolean",
1396-
"description": "%generateOptionsSchema.allowFastEvaluate.description%",
1396+
"description": "%generateOptionsSchema.expressionEvaluationOptions.allowImplicitFuncEval.description%",
13971397
"default": true
13981398
},
1399+
"csharp.debug.expressionEvaluationOptions.allowToString": {
1400+
"type": "boolean",
1401+
"markdownDescription": "%generateOptionsSchema.expressionEvaluationOptions.allowToString.markdownDescription%",
1402+
"default": true
1403+
},
1404+
"csharp.debug.expressionEvaluationOptions.allowFastEvaluate": {
1405+
"type": "boolean",
1406+
"description": "%generateOptionsSchema.expressionEvaluationOptions.allowFastEvaluate.description%",
1407+
"default": true
1408+
},
1409+
"csharp.debug.expressionEvaluationOptions.showRawValues": {
1410+
"type": "boolean",
1411+
"description": "%generateOptionsSchema.expressionEvaluationOptions.showRawValues.description%",
1412+
"default": false
1413+
},
13991414
"dotnet.unitTestDebuggingOptions": {
14001415
"type": "object",
14011416
"description": "%configuration.dotnet.unitTestDebuggingOptions%",
@@ -1561,15 +1576,37 @@
15611576
"enabled": {
15621577
"title": "boolean",
15631578
"markdownDescription": "%generateOptionsSchema.sourceLinkOptions.additionalItems.enabled.markdownDescription%",
1564-
"default": "true"
1579+
"default": true
15651580
}
15661581
}
15671582
}
15681583
},
1569-
"allowFastEvaluate": {
1570-
"type": "boolean",
1571-
"description": "%generateOptionsSchema.allowFastEvaluate.description%",
1572-
"default": true
1584+
"expressionEvaluationOptions": {
1585+
"description": "%generateOptionsSchema.expressionEvaluationOptions.description%",
1586+
"default": {},
1587+
"type": "object",
1588+
"properties": {
1589+
"allowImplicitFuncEval": {
1590+
"type": "boolean",
1591+
"description": "%generateOptionsSchema.expressionEvaluationOptions.allowImplicitFuncEval.description%",
1592+
"default": true
1593+
},
1594+
"allowToString": {
1595+
"type": "boolean",
1596+
"markdownDescription": "%generateOptionsSchema.expressionEvaluationOptions.allowToString.markdownDescription%",
1597+
"default": true
1598+
},
1599+
"allowFastEvaluate": {
1600+
"type": "boolean",
1601+
"description": "%generateOptionsSchema.expressionEvaluationOptions.allowFastEvaluate.description%",
1602+
"default": true
1603+
},
1604+
"showRawValues": {
1605+
"type": "boolean",
1606+
"description": "%generateOptionsSchema.expressionEvaluationOptions.showRawValues.description%",
1607+
"default": false
1608+
}
1609+
}
15731610
},
15741611
"targetArchitecture": {
15751612
"type": "string",
@@ -2769,15 +2806,37 @@
27692806
"enabled": {
27702807
"title": "boolean",
27712808
"markdownDescription": "%generateOptionsSchema.sourceLinkOptions.additionalItems.enabled.markdownDescription%",
2772-
"default": "true"
2809+
"default": true
27732810
}
27742811
}
27752812
}
27762813
},
2777-
"allowFastEvaluate": {
2778-
"type": "boolean",
2779-
"description": "%generateOptionsSchema.allowFastEvaluate.description%",
2780-
"default": true
2814+
"expressionEvaluationOptions": {
2815+
"description": "%generateOptionsSchema.expressionEvaluationOptions.description%",
2816+
"default": {},
2817+
"type": "object",
2818+
"properties": {
2819+
"allowImplicitFuncEval": {
2820+
"type": "boolean",
2821+
"description": "%generateOptionsSchema.expressionEvaluationOptions.allowImplicitFuncEval.description%",
2822+
"default": true
2823+
},
2824+
"allowToString": {
2825+
"type": "boolean",
2826+
"markdownDescription": "%generateOptionsSchema.expressionEvaluationOptions.allowToString.markdownDescription%",
2827+
"default": true
2828+
},
2829+
"allowFastEvaluate": {
2830+
"type": "boolean",
2831+
"description": "%generateOptionsSchema.expressionEvaluationOptions.allowFastEvaluate.description%",
2832+
"default": true
2833+
},
2834+
"showRawValues": {
2835+
"type": "boolean",
2836+
"description": "%generateOptionsSchema.expressionEvaluationOptions.showRawValues.description%",
2837+
"default": false
2838+
}
2839+
}
27812840
},
27822841
"targetOutputLogPath": {
27832842
"type": "string",
@@ -3279,15 +3338,37 @@
32793338
"enabled": {
32803339
"title": "boolean",
32813340
"markdownDescription": "%generateOptionsSchema.sourceLinkOptions.additionalItems.enabled.markdownDescription%",
3282-
"default": "true"
3341+
"default": true
32833342
}
32843343
}
32853344
}
32863345
},
3287-
"allowFastEvaluate": {
3288-
"type": "boolean",
3289-
"description": "%generateOptionsSchema.allowFastEvaluate.description%",
3290-
"default": true
3346+
"expressionEvaluationOptions": {
3347+
"description": "%generateOptionsSchema.expressionEvaluationOptions.description%",
3348+
"default": {},
3349+
"type": "object",
3350+
"properties": {
3351+
"allowImplicitFuncEval": {
3352+
"type": "boolean",
3353+
"description": "%generateOptionsSchema.expressionEvaluationOptions.allowImplicitFuncEval.description%",
3354+
"default": true
3355+
},
3356+
"allowToString": {
3357+
"type": "boolean",
3358+
"markdownDescription": "%generateOptionsSchema.expressionEvaluationOptions.allowToString.markdownDescription%",
3359+
"default": true
3360+
},
3361+
"allowFastEvaluate": {
3362+
"type": "boolean",
3363+
"description": "%generateOptionsSchema.expressionEvaluationOptions.allowFastEvaluate.description%",
3364+
"default": true
3365+
},
3366+
"showRawValues": {
3367+
"type": "boolean",
3368+
"description": "%generateOptionsSchema.expressionEvaluationOptions.showRawValues.description%",
3369+
"default": false
3370+
}
3371+
}
32913372
},
32923373
"targetArchitecture": {
32933374
"type": "string",
@@ -4065,15 +4146,37 @@
40654146
"enabled": {
40664147
"title": "boolean",
40674148
"markdownDescription": "%generateOptionsSchema.sourceLinkOptions.additionalItems.enabled.markdownDescription%",
4068-
"default": "true"
4149+
"default": true
40694150
}
40704151
}
40714152
}
40724153
},
4073-
"allowFastEvaluate": {
4074-
"type": "boolean",
4075-
"description": "%generateOptionsSchema.allowFastEvaluate.description%",
4076-
"default": true
4154+
"expressionEvaluationOptions": {
4155+
"description": "%generateOptionsSchema.expressionEvaluationOptions.description%",
4156+
"default": {},
4157+
"type": "object",
4158+
"properties": {
4159+
"allowImplicitFuncEval": {
4160+
"type": "boolean",
4161+
"description": "%generateOptionsSchema.expressionEvaluationOptions.allowImplicitFuncEval.description%",
4162+
"default": true
4163+
},
4164+
"allowToString": {
4165+
"type": "boolean",
4166+
"markdownDescription": "%generateOptionsSchema.expressionEvaluationOptions.allowToString.markdownDescription%",
4167+
"default": true
4168+
},
4169+
"allowFastEvaluate": {
4170+
"type": "boolean",
4171+
"description": "%generateOptionsSchema.expressionEvaluationOptions.allowFastEvaluate.description%",
4172+
"default": true
4173+
},
4174+
"showRawValues": {
4175+
"type": "boolean",
4176+
"description": "%generateOptionsSchema.expressionEvaluationOptions.showRawValues.description%",
4177+
"default": false
4178+
}
4179+
}
40774180
},
40784181
"targetOutputLogPath": {
40794182
"type": "string",
@@ -4575,15 +4678,37 @@
45754678
"enabled": {
45764679
"title": "boolean",
45774680
"markdownDescription": "%generateOptionsSchema.sourceLinkOptions.additionalItems.enabled.markdownDescription%",
4578-
"default": "true"
4681+
"default": true
45794682
}
45804683
}
45814684
}
45824685
},
4583-
"allowFastEvaluate": {
4584-
"type": "boolean",
4585-
"description": "%generateOptionsSchema.allowFastEvaluate.description%",
4586-
"default": true
4686+
"expressionEvaluationOptions": {
4687+
"description": "%generateOptionsSchema.expressionEvaluationOptions.description%",
4688+
"default": {},
4689+
"type": "object",
4690+
"properties": {
4691+
"allowImplicitFuncEval": {
4692+
"type": "boolean",
4693+
"description": "%generateOptionsSchema.expressionEvaluationOptions.allowImplicitFuncEval.description%",
4694+
"default": true
4695+
},
4696+
"allowToString": {
4697+
"type": "boolean",
4698+
"markdownDescription": "%generateOptionsSchema.expressionEvaluationOptions.allowToString.markdownDescription%",
4699+
"default": true
4700+
},
4701+
"allowFastEvaluate": {
4702+
"type": "boolean",
4703+
"description": "%generateOptionsSchema.expressionEvaluationOptions.allowFastEvaluate.description%",
4704+
"default": true
4705+
},
4706+
"showRawValues": {
4707+
"type": "boolean",
4708+
"description": "%generateOptionsSchema.expressionEvaluationOptions.showRawValues.description%",
4709+
"default": false
4710+
}
4711+
}
45874712
},
45884713
"targetArchitecture": {
45894714
"type": "string",

package.nls.json

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,21 @@
385385
"Markdown text between `` should not be translated or localized (they represent literal text) and the capitalization, spacing, and punctuation (including the ``) should not be altered."
386386
]
387387
},
388-
"generateOptionsSchema.allowFastEvaluate.description": "When true (the default state), the debugger will attempt faster evaluation by simulating execution of simple properties and methods.",
388+
"generateOptionsSchema.expressionEvaluationOptions.description": "Options to control how the debugger evaluates expressions in data tips, the debug view's 'Watch' and 'Variables' sections, or in the Debug Console.",
389+
"generateOptionsSchema.expressionEvaluationOptions.allowImplicitFuncEval.description": {
390+
"message": "When true (the default state), the debugger will automatically call property `get` methods and other implicit function calls.",
391+
"comment": [
392+
"Markdown text between `` should not be translated or localized (they represent literal text) and the capitalization, spacing, and punctuation (including the ``) should not be altered."
393+
]
394+
},
395+
"generateOptionsSchema.expressionEvaluationOptions.allowToString.markdownDescription": {
396+
"message": "When true (the default state), the debugger will automatically call `ToString` to format objects. This option has no effect if `allowImplicitFuncEval` is `false`.",
397+
"comment": [
398+
"Markdown text between `` should not be translated or localized (they represent literal text) and the capitalization, spacing, and punctuation (including the ``) should not be altered."
399+
]
400+
},
401+
"generateOptionsSchema.expressionEvaluationOptions.allowFastEvaluate.description": "When true (the default state), the debugger will attempt faster evaluation by simulating execution of simple properties and methods.",
402+
"generateOptionsSchema.expressionEvaluationOptions.showRawValues.description": "When true, the debugger will show raw structure of objects in variables windows.",
389403
"generateOptionsSchema.targetOutputLogPath.description": "When set, text that the target application writes to stdout and stderr (ex: Console.WriteLine) will be saved to the specified file. This option is ignored if console is set to something other than internalConsole. E.g. '${workspaceFolder}/out.txt'",
390404
"generateOptionsSchema.targetArchitecture.markdownDescription": {
391405
"message": "[Only supported in local macOS debugging]\n\nThe architecture of the debuggee. This will automatically be detected unless this parameter is set. Allowed values are `x86_64` or `arm64`.",
@@ -417,4 +431,4 @@
417431
"Markdown text between `` should not be translated or localized (they represent literal text) and the capitalization, spacing, and punctuation (including the ``) should not be altered."
418432
]
419433
}
420-
}
434+
}

src/tools/OptionsSchema.json

Lines changed: 36 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -453,10 +453,10 @@
453453
"*": { "enabled": true }
454454
}
455455
},
456-
"allowFastEvaluate": {
457-
"type": "boolean",
458-
"description": "When true (the default state), the debugger will attempt faster evaluation by simulating execution of simple properties and methods.",
459-
"default": true
456+
"expressionEvaluationOptions": {
457+
"$ref": "#/definitions/ExpressionEvaluationOptions",
458+
"description": "Options to control how the debugger evaluates expressions in data tips, the debug view's 'Watch' and 'Variables' sections, or in the Debug Console.",
459+
"default": {}
460460
},
461461
"targetOutputLogPath": {
462462
"type": "string",
@@ -549,10 +549,10 @@
549549
"*": { "enabled": true }
550550
}
551551
},
552-
"allowFastEvaluate": {
553-
"type": "boolean",
554-
"description": "When true (the default state), the debugger will attempt faster evaluation by simulating execution of simple properties and methods.",
555-
"default": true
552+
"expressionEvaluationOptions": {
553+
"$ref": "#/definitions/ExpressionEvaluationOptions",
554+
"description": "Options to control how the debugger evaluates expressions in data tips, the debug view's 'Watch' and 'Variables' sections, or in the Debug Console.",
555+
"default": {}
556556
},
557557
"targetArchitecture": {
558558
"type": "string",
@@ -570,10 +570,37 @@
570570
"enabled": {
571571
"title": "boolean",
572572
"markdownDescription": "Is Source Link enabled for this URL? If unspecified, this option defaults to `true`.",
573-
"default": "true"
573+
"default": true
574574
}
575575
}
576576
}
577+
},
578+
"ExpressionEvaluationOptions": {
579+
"type": "object",
580+
"description": "Options to control how the debugger evaluates expressions in data tips, the debug view's 'Watch' and 'Variables' sections, or in the Debug Console.",
581+
"default": {},
582+
"properties": {
583+
"allowImplicitFuncEval": {
584+
"type": "boolean",
585+
"description": "When true (the default state), the debugger will automatically call property `get` methods and other implicit function calls.",
586+
"default": true
587+
},
588+
"allowToString": {
589+
"type": "boolean",
590+
"markdownDescription": "When true (the default state), the debugger will automatically call `ToString` to format objects. This option has no effect if `allowImplicitFuncEval` is `false`.",
591+
"default": true
592+
},
593+
"allowFastEvaluate": {
594+
"type": "boolean",
595+
"description": "When true (the default state), the debugger will attempt faster evaluation by simulating execution of simple properties and methods.",
596+
"default": true
597+
},
598+
"showRawValues": {
599+
"type": "boolean",
600+
"description": "When true, the debugger will show raw structure of objects in variables windows.",
601+
"default": false
602+
}
603+
}
577604
}
578605
}
579606
}

0 commit comments

Comments
 (0)