Skip to content

Commit aeab454

Browse files
author
Kartik Raj
committed
Code reviews
1 parent 81dcf27 commit aeab454

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/client/pythonEnvironments/collection/environmentsResolver.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ import {
1212
import { PythonEnvsChangedEvent } from '../base/watcher';
1313
import { IEnvironmentInfoService } from '../info/environmentInfoService';
1414

15+
/**
16+
* Calls environment info service which runs `interpreterInfo.py` script on environments received
17+
* from the parent locator. Uses information received to populate environments further and pass it on.
18+
*/
1519
export class PythonEnvsResolver implements ILocator {
1620
public get onChanged(): Event<PythonEnvsChangedEvent> {
1721
return this.parentLocator.onChanged;
@@ -74,7 +78,6 @@ export class PythonEnvsResolver implements ILocator {
7478
let result = await iterator.next();
7579
while (!result.done) {
7680
const currEnv = result.value;
77-
// Resolver only expects unique environments, so store & yield as-is.
7881
seen.push(currEnv);
7982
yield currEnv;
8083
state.pending += 1;

0 commit comments

Comments
 (0)