File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
src/client/pythonEnvironments Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -463,6 +463,9 @@ export function getNativePythonFinder(context?: IExtensionContext): NativePython
463463 if ( ! _finder ) {
464464 const cacheDirectory = context ? getCacheDirectory ( context ) : undefined ;
465465 _finder = new NativePythonFinderImpl ( cacheDirectory ) ;
466+ if ( context ) {
467+ context . subscriptions . push ( _finder ) ;
468+ }
466469 }
467470 return _finder ;
468471}
Original file line number Diff line number Diff line change @@ -60,7 +60,6 @@ export async function initialize(ext: ExtensionState): Promise<IDiscoveryAPI> {
6060
6161 if ( shouldUseNativeLocator ( ) ) {
6262 const finder = getNativePythonFinder ( ext . context ) ;
63- ext . disposables . push ( finder ) ;
6463 const api = createNativeEnvironmentsApi ( finder ) ;
6564 ext . disposables . push ( api ) ;
6665 registerNewDiscoveryForIOC (
You can’t perform that action at this time.
0 commit comments