@@ -218,11 +218,14 @@ export class InterpreterService implements Disposable, IInterpreterService {
218218
219219 public async getActiveInterpreter ( resource ?: Uri ) : Promise < PythonEnvironment | undefined > {
220220 const activatedEnvLaunch = this . serviceContainer . get < IActivatedEnvironmentLaunch > ( IActivatedEnvironmentLaunch ) ;
221+ console . log ( 'EJFB 3.1' ) ;
221222 let path = await activatedEnvLaunch . selectIfLaunchedViaActivatedEnv ( true ) ;
222223 // This is being set as interpreter in background, after which it'll show up in `.pythonPath` config.
223224 // However we need not wait on the update to take place, as we can use the value directly.
225+ console . log ( 'EJFB 3.2' ) ;
224226 if ( ! path ) {
225227 path = this . configService . getSettings ( resource ) . pythonPath ;
228+ console . log ( 'EJFB 3.3' ) ;
226229 if ( pathUtils . basename ( path ) === path ) {
227230 // Value can be `python`, `python3`, `python3.9` etc.
228231 // Note the following triggers autoselection if no interpreter is explictly
@@ -231,21 +234,25 @@ export class InterpreterService implements Disposable, IInterpreterService {
231234 const pythonExecutionFactory = this . serviceContainer . tryGet < IPythonExecutionFactory > (
232235 IPythonExecutionFactory ,
233236 ) ;
237+ console . log ( 'EJFB 3.4' ) ;
234238 const pythonExecutionService = pythonExecutionFactory
235239 ? await pythonExecutionFactory . create ( { resource } )
236240 : undefined ;
241+ console . log ( 'EJFB 3.5' ) ;
237242 const fullyQualifiedPath = pythonExecutionService
238243 ? await pythonExecutionService . getExecutablePath ( ) . catch ( ( ex ) => {
239244 traceError ( ex ) ;
240245 } )
241246 : undefined ;
247+ console . log ( 'EJFB 3.6' ) ;
242248 // Python path is invalid or python isn't installed.
243249 if ( ! fullyQualifiedPath ) {
244250 return undefined ;
245251 }
246252 path = fullyQualifiedPath ;
247253 }
248254 }
255+ console . log ( 'EJFB 3.7' ) ;
249256 return this . getInterpreterDetails ( path ) ;
250257 }
251258
0 commit comments