From c3d66aec66582189ab34ae7aea49b42ba9ed8977 Mon Sep 17 00:00:00 2001 From: Mehmet Bektas Date: Thu, 15 Feb 2024 09:54:14 -0800 Subject: [PATCH] allow python symlinks in envs --- src/main/registry.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/registry.ts b/src/main/registry.ts index 7e5fe2c9..cd572e19 100644 --- a/src/main/registry.ts +++ b/src/main/registry.ts @@ -167,7 +167,6 @@ export class Registry implements IRegistry, IDisposable { } // discover environments on system - // TODO: rediscover environments in app's envs directory const pathEnvironments = this._loadPathEnvironments(); const condaEnvironments = this._loadCondaEnvironments(); const allEnvironments = [pathEnvironments, condaEnvironments]; @@ -284,9 +283,7 @@ export class Registry implements IRegistry, IDisposable { sort?: boolean ): Promise { let filteredEnvs = envs.filter(env => this._pathExistsSync(env.path)); - const uniqueEnvs = this._getUniqueObjects(filteredEnvs, env => { - return fs.realpathSync(env.path); - }); + const uniqueEnvs = this._getUniqueObjects(filteredEnvs); const resolvedEnvs = await Promise.all( uniqueEnvs.map(async env => await this._resolveEnvironment(env.path)) );