@@ -18,7 +18,6 @@ import { OSType } from '../../../../../client/common/utils/platform';
18
18
import { DebuggerTypeName } from '../../../../../client/debugger/constants' ;
19
19
import { IDebugEnvironmentVariablesService } from '../../../../../client/debugger/extension/configuration/resolvers/helper' ;
20
20
import { LaunchConfigurationResolver } from '../../../../../client/debugger/extension/configuration/resolvers/launch' ;
21
- import { ILaunchDebugConfigurationResolverExperiment } from '../../../../../client/debugger/extension/configuration/types' ;
22
21
import { DebugOptions , LaunchRequestArguments } from '../../../../../client/debugger/types' ;
23
22
import { IInterpreterHelper } from '../../../../../client/interpreter/contracts' ;
24
23
import { getOSType } from '../../../../common' ;
@@ -38,21 +37,19 @@ getInfoPerOS().forEach(([osName, osType, path]) => {
38
37
let documentManager : TypeMoq . IMock < IDocumentManager > ;
39
38
let diagnosticsService : TypeMoq . IMock < IInvalidPythonPathInDebuggerService > ;
40
39
let debugEnvHelper : TypeMoq . IMock < IDebugEnvironmentVariablesService > ;
41
- let configExperiment : TypeMoq . IMock < ILaunchDebugConfigurationResolverExperiment > ;
42
40
function createMoqWorkspaceFolder ( folderPath : string ) {
43
41
const folder = TypeMoq . Mock . ofType < WorkspaceFolder > ( ) ;
44
42
folder . setup ( ( f ) => f . uri ) . returns ( ( ) => Uri . file ( folderPath ) ) ;
45
43
return folder . object ;
46
44
}
47
45
function setupIoc ( pythonPath : string , workspaceFolder ?: WorkspaceFolder ) {
48
- const confgService = TypeMoq . Mock . ofType < IConfigurationService > ( ) ;
46
+ const configService = TypeMoq . Mock . ofType < IConfigurationService > ( ) ;
49
47
workspaceService = TypeMoq . Mock . ofType < IWorkspaceService > ( ) ;
50
48
documentManager = TypeMoq . Mock . ofType < IDocumentManager > ( ) ;
51
49
52
50
platformService = TypeMoq . Mock . ofType < IPlatformService > ( ) ;
53
51
diagnosticsService = TypeMoq . Mock . ofType < IInvalidPythonPathInDebuggerService > ( ) ;
54
52
debugEnvHelper = TypeMoq . Mock . ofType < IDebugEnvironmentVariablesService > ( ) ;
55
- configExperiment = TypeMoq . Mock . ofType < ILaunchDebugConfigurationResolverExperiment > ( ) ;
56
53
57
54
pythonExecutionService = TypeMoq . Mock . ofType < IPythonExecutionService > ( ) ;
58
55
helper = TypeMoq . Mock . ofType < IInterpreterHelper > ( ) ;
@@ -71,25 +68,19 @@ getInfoPerOS().forEach(([osName, osType, path]) => {
71
68
if ( workspaceFolder ) {
72
69
settings . setup ( ( s ) => s . envFile ) . returns ( ( ) => path . join ( workspaceFolder ! . uri . fsPath , '.env2' ) ) ;
73
70
}
74
- confgService . setup ( ( c ) => c . getSettings ( TypeMoq . It . isAny ( ) ) ) . returns ( ( ) => settings . object ) ;
71
+ configService . setup ( ( c ) => c . getSettings ( TypeMoq . It . isAny ( ) ) ) . returns ( ( ) => settings . object ) ;
75
72
setUpOSMocks ( osType , platformService ) ;
76
73
debugEnvHelper
77
74
. setup ( ( x ) => x . getEnvironmentVariables ( TypeMoq . It . isAny ( ) ) )
78
75
. returns ( ( ) => Promise . resolve ( { } ) ) ;
79
- configExperiment
80
- . setup ( ( c ) => c . modifyConfigurationBasedOnExperiment ( TypeMoq . It . isAny ( ) ) )
81
- . returns ( ( ) => {
82
- return ;
83
- } ) ;
84
76
85
77
debugProvider = new LaunchConfigurationResolver (
86
78
workspaceService . object ,
87
79
documentManager . object ,
88
80
diagnosticsService . object ,
89
81
platformService . object ,
90
- confgService . object ,
91
- debugEnvHelper . object ,
92
- configExperiment . object
82
+ configService . object ,
83
+ debugEnvHelper . object
93
84
) ;
94
85
}
95
86
function setupActiveEditor ( fileName : string | undefined , languageId : string ) {
0 commit comments