File tree Expand file tree Collapse file tree
test/debugger/configProvider Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ Pass OS type to the debugger.
Original file line number Diff line number Diff line change @@ -48,7 +48,8 @@ export enum DebugOptions {
4848 Sudo = 'Sudo' ,
4949 Pyramid = 'Pyramid' ,
5050 FixFilePathCase = 'FixFilePathCase' ,
51- WindowsClient = 'WindowsClient'
51+ WindowsClient = 'WindowsClient' ,
52+ UnixClient = 'UnixClient'
5253}
5354
5455export interface ExceptionHandling {
Original file line number Diff line number Diff line change @@ -82,6 +82,8 @@ export class PythonV2DebugConfigurationProvider extends BaseConfigurationProvide
8282 }
8383 if ( this . serviceContainer . get < IPlatformService > ( IPlatformService ) . isWindows ) {
8484 this . debugOption ( debugOptions , DebugOptions . WindowsClient ) ;
85+ } else {
86+ this . debugOption ( debugOptions , DebugOptions . UnixClient ) ;
8587 }
8688
8789 if ( ! debugConfiguration . pathMappings ) {
Original file line number Diff line number Diff line change @@ -33,9 +33,13 @@ enum OS {
3333 let platformService : TypeMoq . IMock < IPlatformService > ;
3434 let fileSystem : TypeMoq . IMock < IFileSystem > ;
3535 const debugOptionsAvailable = [ DebugOptions . RedirectOutput ] ;
36- if ( os . value === OS . Windows && provider . debugType === 'pythonExperimental' ) {
37- debugOptionsAvailable . push ( DebugOptions . FixFilePathCase ) ;
38- debugOptionsAvailable . push ( DebugOptions . WindowsClient ) ;
36+ if ( provider . debugType === 'pythonExperimental' ) {
37+ if ( os . value === OS . Windows ) {
38+ debugOptionsAvailable . push ( DebugOptions . FixFilePathCase ) ;
39+ debugOptionsAvailable . push ( DebugOptions . WindowsClient ) ;
40+ } else {
41+ debugOptionsAvailable . push ( DebugOptions . UnixClient ) ;
42+ }
3943 }
4044 setup ( ( ) => {
4145 serviceContainer = TypeMoq . Mock . ofType < IServiceContainer > ( ) ;
You can’t perform that action at this time.
0 commit comments