Skip to content

Commit

Permalink
Await on promises (#23802)
Browse files Browse the repository at this point in the history
  • Loading branch information
DonJayamanne authored Jul 12, 2024
1 parent 55b3129 commit b65d452
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ export class EnvsCollectionService extends PythonEnvsWatcher<PythonEnvCollection
const validCondaInfoEnvs = new Set<string>();
const duplicate = new Set<string>();
// Duplicate, invalid conda environments.
Promise.all(
await Promise.all(
(info?.envs || []).map(async (e) => {
if (duplicate.has(e)) {
condaTelemetry.condaInfoEnvsDuplicate += 1;
Expand All @@ -461,7 +461,7 @@ export class EnvsCollectionService extends PythonEnvsWatcher<PythonEnvCollection

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

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

0 comments on commit b65d452

Please sign in to comment.