Skip to content

Commit 5db5d7b

Browse files
author
Kartik Raj
authored
Ensure we do not update the cache unnecessarily while getting env details if it already has latest info (#18766)
1 parent ae9314f commit 5db5d7b

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,6 @@ export class PythonEnvInfoCache extends PythonEnvsWatcher<PythonEnvCollectionCha
112112
this.envs.push(env);
113113
this.fire({ new: env });
114114
reportInterpretersChanged([{ path: getEnvPath(env.executable.filename, env.location).path, type: 'add' }]);
115-
} else if (hasCompleteInfo) {
116-
this.updateEnv(found, env);
117115
}
118116
}
119117

0 commit comments

Comments
 (0)