@@ -16,11 +16,10 @@ import { IApplicationShell, IWorkspaceService } from '../../client/common/applic
16
16
import { STANDARD_OUTPUT_CHANNEL } from '../../client/common/constants' ;
17
17
import { IFileSystem } from '../../client/common/platform/types' ;
18
18
import {
19
- IConfigurationService ,
19
+ IInterpreterPathProxyService ,
20
20
IDisposableRegistry ,
21
21
IOutputChannel ,
22
22
IPathUtils ,
23
- IPythonSettings ,
24
23
ReadWrite ,
25
24
} from '../../client/common/types' ;
26
25
import { Interpreters } from '../../client/common/utils/localize' ;
@@ -57,8 +56,7 @@ suite('Interpreters Display', () => {
57
56
let fileSystem : TypeMoq . IMock < IFileSystem > ;
58
57
let disposableRegistry : Disposable [ ] ;
59
58
let statusBar : TypeMoq . IMock < StatusBarItem > ;
60
- let pythonSettings : TypeMoq . IMock < IPythonSettings > ;
61
- let configurationService : TypeMoq . IMock < IConfigurationService > ;
59
+ let interpreterPathProxyService : TypeMoq . IMock < IInterpreterPathProxyService > ;
62
60
let interpreterDisplay : IInterpreterDisplay ;
63
61
let interpreterHelper : TypeMoq . IMock < IInterpreterHelper > ;
64
62
let pathUtils : TypeMoq . IMock < IPathUtils > ;
@@ -73,8 +71,7 @@ suite('Interpreters Display', () => {
73
71
interpreterHelper = TypeMoq . Mock . ofType < IInterpreterHelper > ( ) ;
74
72
disposableRegistry = [ ] ;
75
73
statusBar = TypeMoq . Mock . ofType < StatusBarItem > ( ) ;
76
- pythonSettings = TypeMoq . Mock . ofType < IPythonSettings > ( ) ;
77
- configurationService = TypeMoq . Mock . ofType < IConfigurationService > ( ) ;
74
+ interpreterPathProxyService = TypeMoq . Mock . ofType < IInterpreterPathProxyService > ( ) ;
78
75
pathUtils = TypeMoq . Mock . ofType < IPathUtils > ( ) ;
79
76
output = TypeMoq . Mock . ofType < IOutputChannel > ( ) ;
80
77
autoSelection = mock ( InterpreterAutoSelectionService ) ;
@@ -94,8 +91,8 @@ suite('Interpreters Display', () => {
94
91
serviceContainer . setup ( ( c ) => c . get ( TypeMoq . It . isValue ( IFileSystem ) ) ) . returns ( ( ) => fileSystem . object ) ;
95
92
serviceContainer . setup ( ( c ) => c . get ( TypeMoq . It . isValue ( IDisposableRegistry ) ) ) . returns ( ( ) => disposableRegistry ) ;
96
93
serviceContainer
97
- . setup ( ( c ) => c . get ( TypeMoq . It . isValue ( IConfigurationService ) ) )
98
- . returns ( ( ) => configurationService . object ) ;
94
+ . setup ( ( c ) => c . get ( TypeMoq . It . isValue ( IInterpreterPathProxyService ) ) )
95
+ . returns ( ( ) => interpreterPathProxyService . object ) ;
99
96
serviceContainer
100
97
. setup ( ( c ) => c . get ( TypeMoq . It . isValue ( IInterpreterHelper ) ) )
101
98
. returns ( ( ) => interpreterHelper . object ) ;
@@ -215,8 +212,7 @@ suite('Interpreters Display', () => {
215
212
interpreterService
216
213
. setup ( ( i ) => i . getActiveInterpreter ( TypeMoq . It . isValue ( workspaceFolder ) ) )
217
214
. returns ( ( ) => Promise . resolve ( undefined ) ) ;
218
- configurationService . setup ( ( c ) => c . getSettings ( TypeMoq . It . isAny ( ) ) ) . returns ( ( ) => pythonSettings . object ) ;
219
- pythonSettings . setup ( ( p ) => p . pythonPath ) . returns ( ( ) => pythonPath ) ;
215
+ interpreterPathProxyService . setup ( ( c ) => c . get ( TypeMoq . It . isAny ( ) ) ) . returns ( ( ) => pythonPath ) ;
220
216
fileSystem . setup ( ( f ) => f . fileExists ( TypeMoq . It . isValue ( pythonPath ) ) ) . returns ( ( ) => Promise . resolve ( false ) ) ;
221
217
interpreterHelper
222
218
. setup ( ( v ) => v . getInterpreterInformation ( TypeMoq . It . isValue ( pythonPath ) ) )
0 commit comments