From cbc5adfe86f0409e9cf84c0599f24474fd9ab844 Mon Sep 17 00:00:00 2001 From: Mehmet Bektas Date: Sat, 9 Mar 2024 20:34:20 -0800 Subject: [PATCH] handle user defined and discovered env duplication --- src/main/registry.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/registry.ts b/src/main/registry.ts index 3e68eea7..dbabc353 100644 --- a/src/main/registry.ts +++ b/src/main/registry.ts @@ -675,10 +675,10 @@ export class Registry implements IRegistry, IDisposable { } private _updateEnvironments() { - this._environments = [ + this._environments = this._getUniqueEnvs([ ...this._userSetEnvironments, ...this._discoveredEnvironments - ]; + ]); appData.discoveredPythonEnvs = JSON.parse( JSON.stringify(this._discoveredEnvironments) );