File tree Expand file tree Collapse file tree 4 files changed +22
-4
lines changed
src/extension/debugger/configuration/resolvers Expand file tree Collapse file tree 4 files changed +22
-4
lines changed Original file line number Diff line number Diff line change 278
278
"default" : " Python Debug Console" ,
279
279
"description" : " Display name of the debug console or terminal" ,
280
280
"type" : " string"
281
+ },
282
+ "clientOS" : {
283
+ "default" : null ,
284
+ "description" : " OS that VS code is using." ,
285
+ "enum" : [
286
+ " windows" ,
287
+ null ,
288
+ " unix"
289
+ ]
281
290
}
282
291
}
283
292
},
508
517
"default" : " Python Debug Console" ,
509
518
"description" : " Display name of the debug console or terminal" ,
510
519
"type" : " string"
520
+ },
521
+ "clientOS" : {
522
+ "default" : null ,
523
+ "description" : " OS that VS code is using." ,
524
+ "enum" : [
525
+ " windows" ,
526
+ null ,
527
+ " unix"
528
+ ]
511
529
}
512
530
}
513
531
}
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ export class AttachConfigurationResolver extends BaseConfigurationResolver<Attac
27
27
( item , pos ) => dbgConfig . debugOptions ! . indexOf ( item ) === pos ,
28
28
) ;
29
29
}
30
- if ( debugConfiguration . clientOS === undefined ) {
30
+ if ( ! debugConfiguration . clientOS ) {
31
31
debugConfiguration . clientOS = getOSType ( ) === OSType . Windows ? 'windows' : 'unix' ;
32
32
}
33
33
return debugConfiguration ;
@@ -80,7 +80,7 @@ export class AttachConfigurationResolver extends BaseConfigurationResolver<Attac
80
80
if ( getOSType ( ) === OSType . Windows && isLocalHost ) {
81
81
AttachConfigurationResolver . debugOption ( debugOptions , DebugOptions . FixFilePathCase ) ;
82
82
}
83
- if ( debugConfiguration . clientOS === undefined ) {
83
+ if ( ! debugConfiguration . clientOS ) {
84
84
debugConfiguration . clientOS = getOSType ( ) === OSType . Windows ? 'windows' : 'unix' ;
85
85
}
86
86
if ( debugConfiguration . showReturnValue ) {
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ export abstract class BaseConfigurationResolver<T extends DebugConfiguration>
39
39
debugConfiguration : DebugConfiguration ,
40
40
_token ?: CancellationToken ,
41
41
) : Promise < T | undefined > {
42
- if ( debugConfiguration . clientOS === undefined ) {
42
+ if ( ! debugConfiguration . clientOS ) {
43
43
debugConfiguration . clientOS = getOSType ( ) === OSType . Windows ? 'windows' : 'unix' ;
44
44
}
45
45
if ( debugConfiguration . consoleName ) {
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ export class LaunchConfigurationResolver extends BaseConfigurationResolver<Launc
37
37
38
38
const workspaceFolder = LaunchConfigurationResolver . getWorkspaceFolder ( folder ) ;
39
39
await this . resolveAndUpdatePaths ( workspaceFolder , debugConfiguration ) ;
40
- if ( debugConfiguration . clientOS === undefined ) {
40
+ if ( ! debugConfiguration . clientOS ) {
41
41
debugConfiguration . clientOS = getOSType ( ) === OSType . Windows ? 'windows' : 'unix' ;
42
42
}
43
43
if ( debugConfiguration . consoleName ) {
You can’t perform that action at this time.
0 commit comments