File tree 1 file changed +8
-7
lines changed
src/client/pythonEnvironments/base 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -34,13 +34,14 @@ export function combineIterators<I>(iterators: IPythonEnvsIterator<I>[]): IPytho
34
34
const disposable = event ! ( ( e : PythonEnvUpdatedEvent < I > | ProgressNotificationEvent ) => {
35
35
// NOSONAR
36
36
if ( isProgressEvent ( e ) ) {
37
- if ( e . stage !== ProgressReportStage . discoveryFinished ) {
38
- return ;
39
- }
40
- numActive -= 1 ;
41
- if ( numActive === 0 ) {
42
- // All the sub-events are done so we're done.
43
- handleEvent ( { stage : ProgressReportStage . discoveryFinished } ) ;
37
+ if ( e . stage === ProgressReportStage . discoveryFinished ) {
38
+ numActive -= 1 ;
39
+ if ( numActive === 0 ) {
40
+ // All the sub-events are done so we're done.
41
+ handleEvent ( { stage : ProgressReportStage . discoveryFinished } ) ;
42
+ }
43
+ } else {
44
+ handleEvent ( { stage : e . stage } ) ;
44
45
}
45
46
} else {
46
47
handleEvent ( e ) ;
You can’t perform that action at this time.
0 commit comments