File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ export class InterpreterManager implements Disposable {
45
45
const virtualEnvMgr = this . serviceContainer . get < IVirtualEnvironmentManager > ( IVirtualEnvironmentManager ) ;
46
46
const versionService = this . serviceContainer . get < IInterpreterVersionService > ( IInterpreterVersionService ) ;
47
47
const virtualEnvInterpreterProvider = new VirtualEnvService ( [ activeWorkspace . folderUri . fsPath ] , virtualEnvMgr , versionService ) ;
48
- const interpreters = await this . interpreterProvider . getInterpreters ( activeWorkspace . folderUri ) ;
48
+ const interpreters = await virtualEnvInterpreterProvider . getInterpreters ( activeWorkspace . folderUri ) ;
49
49
const workspacePathUpper = activeWorkspace . folderUri . fsPath . toUpperCase ( ) ;
50
50
const interpretersInWorkspace = interpreters . filter ( interpreter => interpreter . path . toUpperCase ( ) . startsWith ( workspacePathUpper ) ) ;
51
51
// Always pick the first available one.
@@ -80,10 +80,10 @@ export class InterpreterManager implements Disposable {
80
80
return false ;
81
81
}
82
82
if ( activeWorkspace . configTarget === ConfigurationTarget . Workspace ) {
83
- return pythonPathInConfig . workspaceValue === undefined || pythonPathInConfig . workspaceValue === 'python' ;
83
+ return pythonPathInConfig ! . workspaceValue === undefined || pythonPathInConfig ! . workspaceValue === 'python' ;
84
84
}
85
85
if ( activeWorkspace . configTarget === ConfigurationTarget . WorkspaceFolder ) {
86
- return pythonPathInConfig . workspaceFolderValue === undefined || pythonPathInConfig . workspaceFolderValue === 'python' ;
86
+ return pythonPathInConfig ! . workspaceFolderValue === undefined || pythonPathInConfig ! . workspaceFolderValue === 'python' ;
87
87
}
88
88
return false ;
89
89
}
You can’t perform that action at this time.
0 commit comments