From 9c33ac950263953309b10c2328e12bed4ab564e8 Mon Sep 17 00:00:00 2001 From: Renan Rodrigues dos Santos Date: Mon, 6 Apr 2026 21:52:33 -0300 Subject: [PATCH] Sort environments alphabetically and update changelog --- CHANGELOG.md | 3 +++ src/pixi/envManager.ts | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d820377..13ec4f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Pre-release] +- Improve environment display names to match uv/venv style (e.g. `project:env (version)`) +- Sort environments alphabetically by project and environment name +- Update default `workspaceSearchPaths` to improve environment discovery performance - Support `python-envs.workspaceSearchPaths` and `python-envs.globalSearchPaths` for environment discovery - Fix `pixi-code.pixiExecutable` setting not being read - Fix subprocess runner race condition between exit and close events diff --git a/src/pixi/envManager.ts b/src/pixi/envManager.ts index d49bb78..37caef7 100644 --- a/src/pixi/envManager.ts +++ b/src/pixi/envManager.ts @@ -97,7 +97,7 @@ export class PixiEnvManager implements EnvironmentManager { await this.initialize(); if (scope === 'all') { - return [...this.buildEnvLookup().values()]; + return [...this.buildEnvLookup().values()].sort((a, b) => a.displayName.localeCompare(b.displayName)); } if (scope instanceof Uri) {