@@ -80,16 +80,16 @@ export class PythonExecutionFactory implements IPythonExecutionFactory {
8080 }
8181 const processService : IProcessService = await this . processServiceFactory . create ( options . resource ) ;
8282
83- const pixiExecutionService = await this . createPixiExecutionService ( pythonPath , processService ) ;
84- if ( pixiExecutionService ) {
85- return pixiExecutionService ;
86- }
87-
8883 const condaExecutionService = await this . createCondaExecutionService ( pythonPath , processService ) ;
8984 if ( condaExecutionService ) {
9085 return condaExecutionService ;
9186 }
9287
88+ const pixiExecutionService = await this . createPixiExecutionService ( pythonPath , processService ) ;
89+ if ( pixiExecutionService ) {
90+ return pixiExecutionService ;
91+ }
92+
9393 const windowsStoreInterpreterCheck = this . pyenvs . isMicrosoftStoreInterpreter . bind ( this . pyenvs ) ;
9494
9595 const env = ( await windowsStoreInterpreterCheck ( pythonPath ) )
@@ -122,15 +122,16 @@ export class PythonExecutionFactory implements IPythonExecutionFactory {
122122 processService . on ( 'exec' , this . logger . logProcess . bind ( this . logger ) ) ;
123123 this . disposables . push ( processService ) ;
124124
125+ const condaExecutionService = await this . createCondaExecutionService ( pythonPath , processService ) ;
126+ if ( condaExecutionService ) {
127+ return condaExecutionService ;
128+ }
129+
125130 const pixiExecutionService = await this . createPixiExecutionService ( pythonPath , processService ) ;
126131 if ( pixiExecutionService ) {
127132 return pixiExecutionService ;
128133 }
129134
130- const condaExecutionService = await this . createCondaExecutionService ( pythonPath , processService ) ;
131- if ( condaExecutionService ) {
132- return condaExecutionService ;
133- }
134135 const env = createPythonEnv ( pythonPath , processService , this . fileSystem ) ;
135136 return createPythonService ( processService , env ) ;
136137 }
@@ -161,11 +162,11 @@ export class PythonExecutionFactory implements IPythonExecutionFactory {
161162 }
162163
163164 const env = await createPixiEnv ( pixiEnvironment , processService , this . fileSystem ) ;
164- if ( ! env ) {
165- return undefined ;
165+ if ( env ) {
166+ return createPythonService ( processService , env ) ;
166167 }
167168
168- return createPythonService ( processService , env ) ;
169+ return undefined ;
169170 }
170171}
171172
0 commit comments