diff --git a/src/client/pythonEnvironments/base/locators/composite/envsCollectionService.ts b/src/client/pythonEnvironments/base/locators/composite/envsCollectionService.ts index 5469e58d94e5..8ede842828a3 100644 --- a/src/client/pythonEnvironments/base/locators/composite/envsCollectionService.ts +++ b/src/client/pythonEnvironments/base/locators/composite/envsCollectionService.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -import { Event, EventEmitter } from 'vscode'; +import { Event, EventEmitter, workspace } from 'vscode'; import '../../../../common/extensions'; import { createDeferred, Deferred } from '../../../../common/utils/async'; import { StopWatch } from '../../../../common/utils/stopWatch'; @@ -277,7 +277,14 @@ export class EnvsCollectionService extends PythonEnvsWatcher w.uri), + }, + }; + + const envs = this.getEnvs(workspaceFolders.length ? query : undefined); const nativeEnvs = []; const executablesFoundByNativeLocator = new Set(); @@ -485,6 +492,7 @@ export class EnvsCollectionService extends PythonEnvsWatcher