@@ -15,7 +15,8 @@ import { IFileSystem, IPlatformService } from '../../../client/common/platform/t
1515import { IPythonExecutionFactory , IPythonExecutionService } from '../../../client/common/process/types' ;
1616import { IConfigurationService , IPythonSettings } from '../../../client/common/types' ;
1717import { PythonDebugConfigurationProvider , PythonV2DebugConfigurationProvider } from '../../../client/debugger' ;
18- import { DebugOptions } from '../../../client/debugger/Common/Contracts' ;
18+ import { DebugOptions , LaunchRequestArguments } from '../../../client/debugger/Common/Contracts' ;
19+ import { PythonLaunchDebugConfiguration } from '../../../client/debugger/configProviders/baseProvider' ;
1920import { ConfigurationProviderUtils } from '../../../client/debugger/configProviders/configurationProviderUtils' ;
2021import { IConfigurationProviderUtils } from '../../../client/debugger/configProviders/types' ;
2122import { IServiceContainer } from '../../../client/ioc/types' ;
@@ -279,6 +280,23 @@ import { IServiceContainer } from '../../../client/ioc/types';
279280 expect ( debugConfig ) . to . have . property ( 'debugOptions' ) ;
280281 expect ( ( debugConfig as any ) . debugOptions ) . to . be . deep . equal ( [ DebugOptions . RedirectOutput ] ) ;
281282 } ) ;
283+ test ( 'Test overriding defaults of experimental debugger' , async ( ) => {
284+ if ( provider . debugType !== 'pythonExperimental' ) {
285+ return ;
286+ }
287+ const pythonPath = `PythonPath_${ new Date ( ) . toString ( ) } ` ;
288+ const workspaceFolder = createMoqWorkspaceFolder ( __dirname ) ;
289+ const pythonFile = 'xyz.py' ;
290+ setupIoc ( pythonPath ) ;
291+ setupActiveEditor ( pythonFile , PYTHON_LANGUAGE ) ;
292+
293+ const debugConfig = await debugProvider . resolveDebugConfiguration ! ( workspaceFolder , { redirectOutput : false } as PythonLaunchDebugConfiguration < LaunchRequestArguments > ) ;
294+
295+ expect ( debugConfig ) . to . have . property ( 'console' , 'integratedTerminal' ) ;
296+ expect ( debugConfig ) . to . have . property ( 'stopOnEntry' , false ) ;
297+ expect ( debugConfig ) . to . have . property ( 'debugOptions' ) ;
298+ expect ( ( debugConfig as any ) . debugOptions ) . to . be . deep . equal ( [ ] ) ;
299+ } ) ;
282300 async function testFixFilePathCase ( isWindows : boolean , isMac : boolean , isLinux : boolean ) {
283301 const pythonPath = `PythonPath_${ new Date ( ) . toString ( ) } ` ;
284302 const workspaceFolder = createMoqWorkspaceFolder ( __dirname ) ;
0 commit comments