File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/client/pythonEnvironments/collection Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ import {
12
12
import { PythonEnvsChangedEvent } from '../base/watcher' ;
13
13
import { IEnvironmentInfoService } from '../info/environmentInfoService' ;
14
14
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
+ */
15
19
export class PythonEnvsResolver implements ILocator {
16
20
public get onChanged ( ) : Event < PythonEnvsChangedEvent > {
17
21
return this . parentLocator . onChanged ;
@@ -74,7 +78,6 @@ export class PythonEnvsResolver implements ILocator {
74
78
let result = await iterator . next ( ) ;
75
79
while ( ! result . done ) {
76
80
const currEnv = result . value ;
77
- // Resolver only expects unique environments, so store & yield as-is.
78
81
seen . push ( currEnv ) ;
79
82
yield currEnv ;
80
83
state . pending += 1 ;
You can’t perform that action at this time.
0 commit comments