Skip to content

Commit e1773fc

Browse files
author
Kartik Raj
authored
Do not block updates from reducer on the resolver (#18308)
1 parent 2c22cbf commit e1773fc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ export class PythonEnvsResolver implements IResolvingLocator {
7373
'Unsupported behavior: `undefined` environment updates are not supported from downstream locators in resolver',
7474
);
7575
} else if (seen[event.index] !== undefined) {
76+
const old = seen[event.index];
7677
seen[event.index] = await resolveBasicEnv(event.update);
78+
didUpdate.fire({ old, index: event.index, update: seen[event.index] });
7779
this.resolveInBackground(event.index, state, didUpdate, seen).ignoreErrors();
7880
} else {
7981
// This implies a problem in a downstream locator

0 commit comments

Comments
 (0)