1 parent 36c7b68 commit 4d69547Copy full SHA for 4d69547
1 file changed
src/client/common/process/pythonExecutionFactory.ts
@@ -63,7 +63,8 @@ export class PythonExecutionFactory implements IPythonExecutionFactory {
63
processService.on('exec', this.logger.logProcess.bind(this.logger));
64
65
const windowsStoreInterpreterCheck = (await inDiscoveryExperiment(this.experimentService))
66
- ? this.pyenvs.isWindowsStoreInterpreter
+ ? // Class methods may depend on other properties which belong to the class, so bind the correct context.
67
+ this.pyenvs.isWindowsStoreInterpreter.bind(this.pyenvs)
68
: isWindowsStoreInterpreter;
69
70
return createPythonService(
0 commit comments