Skip to content

Commit 77aaee5

Browse files
author
Kartik Raj
committed
Fix bug
1 parent 28fc616 commit 77aaee5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,7 @@ export class EnvsCollectionService extends PythonEnvsWatcher<PythonEnvCollection
223223
private resolveProgressStates(query: PythonLocatorQuery | undefined) {
224224
this.refreshesPerQuery.get(query)?.resolve();
225225
this.refreshesPerQuery.delete(query);
226-
Object.values(ProgressReportStage).forEach((stage) => {
227-
this.refreshesPerStage.get(stage)?.resolve();
228-
this.refreshesPerStage.delete(stage);
229-
});
226+
// Refreshes per stage are resolved using the progress event instead.
230227
const isRefreshComplete = Array.from(this.refreshesPerQuery.values()).every((d) => d.completed);
231228
if (isRefreshComplete) {
232229
this.progress.fire({ stage: ProgressReportStage.discoveryFinished });

0 commit comments

Comments
 (0)