@@ -80,16 +80,16 @@ export class PythonExecutionFactory implements IPythonExecutionFactory {
80
80
}
81
81
const processService : IProcessService = await this . processServiceFactory . create ( options . resource ) ;
82
82
83
- const pixiExecutionService = await this . createPixiExecutionService ( pythonPath , processService ) ;
84
- if ( pixiExecutionService ) {
85
- return pixiExecutionService ;
86
- }
87
-
88
83
const condaExecutionService = await this . createCondaExecutionService ( pythonPath , processService ) ;
89
84
if ( condaExecutionService ) {
90
85
return condaExecutionService ;
91
86
}
92
87
88
+ const pixiExecutionService = await this . createPixiExecutionService ( pythonPath , processService ) ;
89
+ if ( pixiExecutionService ) {
90
+ return pixiExecutionService ;
91
+ }
92
+
93
93
const windowsStoreInterpreterCheck = this . pyenvs . isMicrosoftStoreInterpreter . bind ( this . pyenvs ) ;
94
94
95
95
const env = ( await windowsStoreInterpreterCheck ( pythonPath ) )
@@ -122,15 +122,16 @@ export class PythonExecutionFactory implements IPythonExecutionFactory {
122
122
processService . on ( 'exec' , this . logger . logProcess . bind ( this . logger ) ) ;
123
123
this . disposables . push ( processService ) ;
124
124
125
+ const condaExecutionService = await this . createCondaExecutionService ( pythonPath , processService ) ;
126
+ if ( condaExecutionService ) {
127
+ return condaExecutionService ;
128
+ }
129
+
125
130
const pixiExecutionService = await this . createPixiExecutionService ( pythonPath , processService ) ;
126
131
if ( pixiExecutionService ) {
127
132
return pixiExecutionService ;
128
133
}
129
134
130
- const condaExecutionService = await this . createCondaExecutionService ( pythonPath , processService ) ;
131
- if ( condaExecutionService ) {
132
- return condaExecutionService ;
133
- }
134
135
const env = createPythonEnv ( pythonPath , processService , this . fileSystem ) ;
135
136
return createPythonService ( processService , env ) ;
136
137
}
@@ -161,11 +162,11 @@ export class PythonExecutionFactory implements IPythonExecutionFactory {
161
162
}
162
163
163
164
const env = await createPixiEnv ( pixiEnvironment , processService , this . fileSystem ) ;
164
- if ( ! env ) {
165
- return undefined ;
165
+ if ( env ) {
166
+ return createPythonService ( processService , env ) ;
166
167
}
167
168
168
- return createPythonService ( processService , env ) ;
169
+ return undefined ;
169
170
}
170
171
}
171
172
0 commit comments