Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Kartik Raj committed May 16, 2022
1 parent 28fc616 commit 77aaee5
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,7 @@ export class EnvsCollectionService extends PythonEnvsWatcher<PythonEnvCollection
private resolveProgressStates(query: PythonLocatorQuery | undefined) {
this.refreshesPerQuery.get(query)?.resolve();
this.refreshesPerQuery.delete(query);
Object.values(ProgressReportStage).forEach((stage) => {
this.refreshesPerStage.get(stage)?.resolve();
this.refreshesPerStage.delete(stage);
});
// Refreshes per stage are resolved using the progress event instead.
const isRefreshComplete = Array.from(this.refreshesPerQuery.values()).every((d) => d.completed);
if (isRefreshComplete) {
this.progress.fire({ stage: ProgressReportStage.discoveryFinished });
Expand Down

0 comments on commit 77aaee5

Please sign in to comment.