Skip to content

Commit b65d452

Browse files
authored
Await on promises (microsoft#23802)
1 parent 55b3129 commit b65d452

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/client/pythonEnvironments/base/locators/composite/envsCollectionService.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ export class EnvsCollectionService extends PythonEnvsWatcher<PythonEnvCollection
438438
const validCondaInfoEnvs = new Set<string>();
439439
const duplicate = new Set<string>();
440440
// Duplicate, invalid conda environments.
441-
Promise.all(
441+
await Promise.all(
442442
(info?.envs || []).map(async (e) => {
443443
if (duplicate.has(e)) {
444444
condaTelemetry.condaInfoEnvsDuplicate += 1;
@@ -461,7 +461,7 @@ export class EnvsCollectionService extends PythonEnvsWatcher<PythonEnvCollection
461461

462462
// Conda env_dirs
463463
const validEnvDirs = new Set<string>();
464-
Promise.all(
464+
await Promise.all(
465465
// eslint-disable-next-line camelcase
466466
(info?.envs_dirs || []).map(async (e) => {
467467
if (await pathExists(e)) {
@@ -736,7 +736,7 @@ export class EnvsCollectionService extends PythonEnvsWatcher<PythonEnvCollection
736736

737737
// Intent is to capture time taken for discovery of all envs to complete the first time.
738738
sendTelemetryEvent(EventName.PYTHON_INTERPRETER_DISCOVERY, elapsedTime, {
739-
telVer: 4,
739+
telVer: 5,
740740
nativeDuration,
741741
workspaceFolderCount: (workspace.workspaceFolders || []).length,
742742
interpreters: this.cache.getAllEnvs().length,

0 commit comments

Comments
 (0)