Skip to content

CmdPal: Fix fallback results showing when disabled in Command Palette#48777

Open
michaeljolley wants to merge 1 commit into
mainfrom
dev/mjolley/fix-cmdpal-fallback-results-when-disable
Open

CmdPal: Fix fallback results showing when disabled in Command Palette#48777
michaeljolley wants to merge 1 commit into
mainfrom
dev/mjolley/fix-cmdpal-fallback-results-when-disable

Conversation

@michaeljolley

@michaeljolley michaeljolley commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

Fallback results were showing in Command Palette search results even when the user had disabled them in settings.

When a fallback command is disabled (e.g., VS Code for Command Palette with IsEnabled = false), it is excluded from configuredGlobalFallbackIds (which only contains enabled + global fallbacks). However, during search filtering, all fallbacks NOT in configuredGlobalFallbackIds were unconditionally added to commonFallbacks, which gets scored and displayed in results. This means disabled fallbacks still appeared.

To fix, I added an IsEnabled check when building the commonFallbacks list in MainListPage.cs. Disabled fallback commands are now properly excluded from search results.

Fixes #48504

When a fallback command is disabled, it should not appear in search
results. Previously, disabled fallbacks that were not in the configured
global fallbacks list would still be added to commonFallbacks and
shown in search results.

The fix adds an IsEnabled check when building the commonFallbacks list,
ensuring disabled fallback commands are excluded from results.

Fixes #48504

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@michaeljolley michaeljolley added the Product-Command Palette Refers to the Command Palette utility label Jun 21, 2026
@michaeljolley michaeljolley self-assigned this Jun 21, 2026
@michaeljolley michaeljolley marked this pull request as ready for review June 21, 2026 18:55
@michaeljolley michaeljolley enabled auto-merge (squash) June 21, 2026 18:55
@michaeljolley michaeljolley added the Needs-Review This Pull Request awaits the review of a maintainer. label Jun 24, 2026
@michaeljolley michaeljolley changed the title Fix fallback results showing when disabled in Command Palette CmdPal: Fix fallback results showing when disabled in Command Palette Jun 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs-Review This Pull Request awaits the review of a maintainer. Product-Command Palette Refers to the Command Palette utility

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

Fallback Results Show Even When Disabled

1 participant