Skip to content

Implemented microsoft#245168: filtering of list items when {0} Selected is toggled #251542

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ines-alves
Copy link

This PR addresses the issue #245168 by extending the existing CountBadge ({0} Selected) to act as a button that enhances the package/extension installation interface. When the button is toggled on, it filters the dropdown list to display only the selected packages or extensions, allowing users to focus on their current choices. The users can also unselect items when the list is filtered and when toggling it off it restores the full list with the updated state. This new feature provides a convenient way to switch between a filtered and complete view, giving the users a better experience.
The focus was python-environments package installation but the implementation in the core is generic, so a flag was added so that when invoking the QuickInput UI the type of count badge can be chosen to better suit the situation.

ines-alves and others added 2 commits June 12, 2025 16:50
…ed is toggled

Extended the CountBadge class to enhance the QuickPick interface
by creating a ToggleCountBadge. This maintains the CountBadge
logic but acts as a button that filters the list of items to only
show the items the user selected. This gives users a better
experience when dealing with long lists.

The motivation was selecting packages for installation in
python-environments. A flag was added so that when invoking the
QuickInput UI, the type of count badge can be chosen depending on
what better suits the situation.

Co-authored-by: Luca Dallalana <luca.dallalana@tecnico.ulisboa.pt>
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.

2 participants