Skip to content

Conversation

Copy link
Contributor

Copilot AI commented May 20, 2025

Problem

Currently, in the Python Projects sidebar view, packages are nested under an extra "Packages" dropdown under each environment, creating an unnecessary level of nesting:

Before

Changes

This PR removes the intermediate "Packages" dropdown and shows packages directly under each environment:

  • Modified ProjectView.getChildren() to skip the PackageRoot level
  • Updated ProjectPackage constructor to accept a ProjectEnvironment parent
  • Updated package refresh logic to work with the new structure
  • Updated command handlers in envCommands.ts to handle the modified package structure
  • Updated menu condition in package.json to attach refresh command to environment nodes

After this change, users can access installed packages with just one expansion from the environment level, which improves the user experience by reducing clicks and making the structure more intuitive.

Fixes #330.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Move packages to top level under each environment Move packages to top level under each environment May 20, 2025
Copilot AI requested a review from eleanorjboyd May 20, 2025 21:27
Copilot finished work on behalf of eleanorjboyd May 20, 2025 21:27
@eleanorjboyd eleanorjboyd requested a review from karthiknadig May 21, 2025 16:35
@eleanorjboyd eleanorjboyd marked this pull request as ready for review May 21, 2025 16:36
Copilot finished work on behalf of karthiknadig May 21, 2025 17:07
@eleanorjboyd eleanorjboyd enabled auto-merge (squash) May 22, 2025 16:49
@eleanorjboyd eleanorjboyd merged commit e42792d into main May 22, 2025
10 checks passed
@eleanorjboyd eleanorjboyd deleted the copilot/fix-330 branch May 22, 2025 17:13
@eleanorjboyd eleanorjboyd added this to the May 2025 milestone May 30, 2025
NguyenCuong1989 referenced this pull request in NguyenCuong1989/vscode-python-environments Oct 23, 2025
## Problem
Currently, in the Python Projects sidebar view, packages are nested
under an extra "Packages" dropdown under each environment, creating an
unnecessary level of nesting:


![Before](https://github.com/user-attachments/assets/3a533a5a-e503-4499-9966-cfc0bebd5837)

## Changes
This PR removes the intermediate "Packages" dropdown and shows packages
directly under each environment:
- Modified `ProjectView.getChildren()` to skip the PackageRoot level
- Updated `ProjectPackage` constructor to accept a `ProjectEnvironment`
parent
- Updated package refresh logic to work with the new structure
- Updated command handlers in `envCommands.ts` to handle the modified
package structure
- Updated menu condition in `package.json` to attach refresh command to
environment nodes

After this change, users can access installed packages with just one
expansion from the environment level, which improves the user experience
by reducing clicks and making the structure more intuitive.

Fixes #330.

---

💡 You can make Copilot smarter by setting up custom instructions,
customizing its development environment and configuring Model Context
Protocol (MCP) servers. Learn more [Copilot coding agent
tips](https://gh.io/copilot-coding-agent-tips) in the docs.

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: eleanorjboyd <[email protected]>
Co-authored-by: karthiknadig <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move packages to top level under each environment

4 participants