File tree Expand file tree Collapse file tree 3 files changed +70
-0
lines changed
src/extension/debugger/configuration/resolvers Expand file tree Collapse file tree 3 files changed +70
-0
lines changed Original file line number Diff line number Diff line change 140
140
"tags" : [
141
141
" experimental"
142
142
]
143
+ },
144
+ "debugpy.variablePresentation" : {
145
+ "default" : {},
146
+ "description" : " Allow the user to specify the preferred presentation of variables." ,
147
+ "scope" : " resource" ,
148
+ "type" : " object" ,
149
+ "properties" : {
150
+ "all" :{
151
+ "type" : " string" ,
152
+ "default" : " group" ,
153
+ "description" : " Set preferred presentation of variables for all instances." ,
154
+ "enum" : [
155
+ " inline" ,
156
+ " group" ,
157
+ " hide"
158
+ ]
159
+ },
160
+ "class" :{
161
+ "type" : " string" ,
162
+ "default" : " group" ,
163
+ "description" : " Set Class presentation of variables." ,
164
+ "enum" : [
165
+ " inline" ,
166
+ " group" ,
167
+ " hide"
168
+ ]
169
+ },
170
+ "function" :{
171
+ "type" : " string" ,
172
+ "default" : " group" ,
173
+ "description" : " Set Function preferred presentation of variables." ,
174
+ "enum" : [
175
+ " inline" ,
176
+ " group" ,
177
+ " hide"
178
+ ]
179
+ },
180
+ "protected" :{
181
+ "type" : " string" ,
182
+ "default" : " group" ,
183
+ "description" : " Set Protected preferred presentation of variables." ,
184
+ "enum" : [
185
+ " inline" ,
186
+ " group" ,
187
+ " hide"
188
+ ]
189
+ },
190
+ "special" :{
191
+ "type" : " string" ,
192
+ "default" : " group" ,
193
+ "description" : " Set Special preferred presentation of variables." ,
194
+ "enum" : [
195
+ " inline" ,
196
+ " group" ,
197
+ " hide"
198
+ ]
199
+ }
200
+ }
143
201
}
144
202
},
145
203
"title" : " Python Debugger" ,
Original file line number Diff line number Diff line change @@ -50,6 +50,12 @@ export class AttachConfigurationResolver extends BaseConfigurationResolver<Attac
50
50
true ,
51
51
) ;
52
52
}
53
+ if ( debugConfiguration . variablePresentation == undefined ) {
54
+ debugConfiguration . variablePresentation = getConfiguration ( 'debugpy' , workspaceFolder ) . get < object > (
55
+ 'variablePresentation' ,
56
+ { } ,
57
+ ) ;
58
+ }
53
59
debugConfiguration . showReturnValue = debugConfiguration . showReturnValue !== false ;
54
60
// Pass workspace folder so we can get this when we get debug events firing.
55
61
debugConfiguration . workspaceFolder = workspaceFolder ? workspaceFolder . fsPath : undefined ;
Original file line number Diff line number Diff line change @@ -114,6 +114,12 @@ export class LaunchConfigurationResolver extends BaseConfigurationResolver<Launc
114
114
true ,
115
115
) ;
116
116
}
117
+ if ( debugConfiguration . variablePresentation == undefined ) {
118
+ debugConfiguration . variablePresentation = getConfiguration ( 'debugpy' , workspaceFolder ) . get < object > (
119
+ 'variablePresentation' ,
120
+ { } ,
121
+ ) ;
122
+ }
117
123
// Pass workspace folder so we can get this when we get debug events firing.
118
124
debugConfiguration . workspaceFolder = workspaceFolder ? workspaceFolder . fsPath : undefined ;
119
125
const debugOptions = debugConfiguration . debugOptions ! ;
You can’t perform that action at this time.
0 commit comments