Skip to content

Commit 1be51d3

Browse files
Add variablePresentation in launch and debug config
1 parent 8a29056 commit 1be51d3

File tree

1 file changed

+151
-39
lines changed

1 file changed

+151
-39
lines changed

package.json

Lines changed: 151 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -132,72 +132,72 @@
132132
"scope": "resource",
133133
"type": "boolean"
134134
},
135-
"debugpy.showPythonInlineValues": {
136-
"default": false,
137-
"description": "%debugpy.showPythonInlineValues.description%",
138-
"scope": "resource",
139-
"type": "boolean",
140-
"tags": [
141-
"experimental"
142-
]
143-
},
144-
"debugpy.variablePresentation": {
135+
"debugpy.debugVariablePresentation": {
145136
"default": {},
146-
"description": "Allow the user to specify the preferred presentation of variables.",
137+
"description": "%debugpy.debugVariablePresentation.description%",
147138
"scope": "resource",
148139
"type": "object",
149140
"properties": {
150-
"all":{
141+
"all": {
151142
"type": "string",
152143
"default": "group",
153-
"description" : "Set preferred presentation of variables for all instances.",
144+
"description" : "%debugpy.debugVariablePresentation.all.description%",
154145
"enum": [
155146
"inline",
156147
"group",
157148
"hide"
158149
]
159150
},
160-
"class":{
151+
"class": {
161152
"type": "string",
162153
"default": "group",
163-
"description" : "Set Class presentation of variables.",
154+
"description" : "%debugpy.debugVariablePresentation.class.description%",
164155
"enum": [
165156
"inline",
166157
"group",
167158
"hide"
168159
]
169160
},
170-
"function":{
161+
"function": {
171162
"type": "string",
172163
"default": "group",
173-
"description" : "Set Function preferred presentation of variables.",
164+
"description" : "%debugpy.debugVariablePresentation.function.description%",
174165
"enum": [
175166
"inline",
176167
"group",
177168
"hide"
178169
]
179170
},
180-
"protected":{
171+
"protected": {
181172
"type": "string",
182173
"default": "group",
183-
"description" : "Set Protected preferred presentation of variables.",
174+
"description" : "%debugpy.debugVariablePresentation.protected.description%",
184175
"enum": [
185176
"inline",
186177
"group",
187178
"hide"
188179
]
189180
},
190-
"special":{
181+
"special": {
191182
"type": "string",
192183
"default": "group",
193-
"description" : "Set Special preferred presentation of variables.",
184+
"description" : "%debugpy.debugVariablePresentation.special.description%",
194185
"enum": [
195186
"inline",
196187
"group",
197188
"hide"
198189
]
199190
}
200191
}
192+
},
193+
"debugpy.showPythonInlineValues": {
194+
"default": false,
195+
"description": "%debugpy.showPythonInlineValues.description%",
196+
"scope": "resource",
197+
"type": "boolean",
198+
"tags": [
199+
"experimental"
200+
]
201201
}
202202
},
203203
"title": "Python Debugger",
@@ -229,6 +229,11 @@
229229
],
230230
"type": "object"
231231
},
232+
"consoleName": {
233+
"default": "Python Debug Console",
234+
"description": "Display name of the debug console or terminal",
235+
"type": "string"
236+
},
232237
"debugAdapterPath": {
233238
"description": "Path (fully qualified) to the python debug adapter executable.",
234239
"type": "string"
@@ -333,10 +338,61 @@
333338
"description": "Whether to enable Sub Process debugging",
334339
"type": "boolean"
335340
},
336-
"consoleName": {
337-
"default": "Python Debug Console",
338-
"description": "Display name of the debug console or terminal",
339-
"type": "string"
341+
"variablePresentation": {
342+
"default": {},
343+
"description": "%debugpy.debugVariablePresentation.description%",
344+
"properties": {
345+
"all": {
346+
"type": "string",
347+
"default": "group",
348+
"description" : "%debugpy.debugVariablePresentation.all.description%",
349+
"enum": [
350+
"inline",
351+
"group",
352+
"hide"
353+
]
354+
},
355+
"class": {
356+
"type": "string",
357+
"default": "group",
358+
"description" : "%debugpy.debugVariablePresentation.class.description%",
359+
"enum": [
360+
"inline",
361+
"group",
362+
"hide"
363+
]
364+
},
365+
"function": {
366+
"type": "string",
367+
"default": "group",
368+
"description" : "%debugpy.debugVariablePresentation.function.description%",
369+
"enum": [
370+
"inline",
371+
"group",
372+
"hide"
373+
]
374+
},
375+
"protected": {
376+
"type": "string",
377+
"default": "group",
378+
"description" : "%debugpy.debugVariablePresentation.protected.description%",
379+
"enum": [
380+
"inline",
381+
"group",
382+
"hide"
383+
]
384+
},
385+
"special": {
386+
"type": "string",
387+
"default": "group",
388+
"description" : "%debugpy.debugVariablePresentation.special.description%",
389+
"enum": [
390+
"inline",
391+
"group",
392+
"hide"
393+
]
394+
}
395+
}
340396
}
341397
}
342398
},
@@ -400,6 +456,11 @@
400456
},
401457
"type": "object"
402458
},
459+
"autoStartBrowser": {
460+
"default": false,
461+
"description": "Open external browser to launch the application",
462+
"type": "boolean"
463+
},
403464
"console": {
404465
"default": "integratedTerminal",
405466
"description": "Where to launch the debug target: internal console, integrated terminal, or external terminal.",
@@ -409,6 +470,11 @@
409470
"internalConsole"
410471
]
411472
},
473+
"consoleName": {
474+
"default": "Python Debug Console",
475+
"description": "Display name of the debug console or terminal",
476+
"type": "string"
477+
},
412478
"cwd": {
413479
"default": "${workspaceFolder}",
414480
"description": "Absolute path to the working directory of the program being debugged. Default is the root directory of the file (leave empty).",
@@ -418,11 +484,6 @@
418484
"description": "Path (fully qualified) to the Python debug adapter executable.",
419485
"type": "string"
420486
},
421-
"autoStartBrowser": {
422-
"default": false,
423-
"description": "Open external browser to launch the application",
424-
"type": "boolean"
425-
},
426487
"django": {
427488
"default": false,
428489
"description": "Django debugging.",
@@ -446,6 +507,11 @@
446507
"description": "Enable debugging of gevent monkey-patched code.",
447508
"type": "boolean"
448509
},
510+
"guiEventLoop": {
511+
"default": "matplotlib",
512+
"description": "The GUI event loop that's going to run. Possible values: \"matplotlib\", \"wx\", \"qt\", \"none\", or a custom function that'll be imported and run.",
513+
"type": "string"
514+
},
449515
"jinja": {
450516
"default": null,
451517
"description": "Jinja template debugging (e.g. Flask).",
@@ -558,15 +624,61 @@
558624
"description": "Running debug program under elevated permissions (on Unix).",
559625
"type": "boolean"
560626
},
561-
"guiEventLoop": {
562-
"default": "matplotlib",
563-
"description": "The GUI event loop that's going to run. Possible values: \"matplotlib\", \"wx\", \"qt\", \"none\", or a custom function that'll be imported and run.",
564-
"type": "string"
565-
},
566-
"consoleName": {
567-
"default": "Python Debug Console",
568-
"description": "Display name of the debug console or terminal",
569-
"type": "string"
627+
"variablePresentation": {
628+
"default": {},
629+
"description": "%debugpy.debugVariablePresentation.description%",
630+
"properties": {
631+
"all": {
632+
"type": "string",
633+
"default": "group",
634+
"description" : "%debugpy.debugVariablePresentation.all.description%",
635+
"enum": [
636+
"inline",
637+
"group",
638+
"hide"
639+
]
640+
},
641+
"class": {
642+
"type": "string",
643+
"default": "group",
644+
"description" : "%debugpy.debugVariablePresentation.class.description%",
645+
"enum": [
646+
"inline",
647+
"group",
648+
"hide"
649+
]
650+
},
651+
"function": {
652+
"type": "string",
653+
"default": "group",
654+
"description" : "%debugpy.debugVariablePresentation.function.description%",
655+
"enum": [
656+
"inline",
657+
"group",
658+
"hide"
659+
]
660+
},
661+
"protected": {
662+
"type": "string",
663+
"default": "group",
664+
"description" : "%debugpy.debugVariablePresentation.protected.description%",
665+
"enum": [
666+
"inline",
667+
"group",
668+
"hide"
669+
]
670+
},
671+
"special": {
672+
"type": "string",
673+
"default": "group",
674+
"description" : "%debugpy.debugVariablePresentation.special.description%",
675+
"enum": [
676+
"inline",
677+
"group",
678+
"hide"
679+
]
680+
}
681+
}
570682
}
571683
}
572684
}

0 commit comments

Comments
 (0)