Skip to content

Commit 4d69547

Browse files
author
Kartik Raj
authored
Fix discovery when in refactor experiment (microsoft#15225)
1 parent 36c7b68 commit 4d69547

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/client/common/process/pythonExecutionFactory.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ export class PythonExecutionFactory implements IPythonExecutionFactory {
6363
processService.on('exec', this.logger.logProcess.bind(this.logger));
6464

6565
const windowsStoreInterpreterCheck = (await inDiscoveryExperiment(this.experimentService))
66-
? this.pyenvs.isWindowsStoreInterpreter
66+
? // Class methods may depend on other properties which belong to the class, so bind the correct context.
67+
this.pyenvs.isWindowsStoreInterpreter.bind(this.pyenvs)
6768
: isWindowsStoreInterpreter;
6869

6970
return createPythonService(

0 commit comments

Comments
 (0)