Skip to content

Check for command palette's visibility before responding to search text changes#19885

Merged
DHowett merged 4 commits intomainfrom
dev/pabhoj/cmd_pal_preview_fix
Feb 24, 2026
Merged

Check for command palette's visibility before responding to search text changes#19885
DHowett merged 4 commits intomainfrom
dev/pabhoj/cmd_pal_preview_fix

Conversation

@PankajBhojwani
Copy link
Contributor

@PankajBhojwani PankajBhojwani commented Feb 18, 2026

Summary of the Pull Request

Only respond to any search changes in the command palette if the command palette is visible. Without this check, a previewable action's preview can appear after the command palette is closed.

Validation Steps Performed

Preview no longer appears after the command palette is closed

PR Checklist

Closes #18737

@github-actions

This comment has been minimized.

Copy link
Member

@carlos-zamora carlos-zamora left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice find! Thanks for fixing it!

void CommandPalette::_filterTextChanged(const IInspectable& /*sender*/,
const Windows::UI::Xaml::RoutedEventArgs& /*args*/)
{
// Only respond to this change if we are visible:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// Only respond to this change if we are visible:
// GH#19884: Only respond to this change if we are visible:

Really just a nice way to link up the bug since it provides more context to this fix.

@DHowett
Copy link
Member

DHowett commented Feb 19, 2026

Is this, by chance, the same bug as #18737?

@PankajBhojwani
Copy link
Contributor Author

Is this, by chance, the same bug as #18737?

Oh it totally is. Closed #19884 as dup and referenced the correct one in the comment for the fix.

@DHowett DHowett enabled auto-merge (squash) February 24, 2026 18:18
@github-project-automation github-project-automation bot moved this to To Cherry Pick in 1.23 Servicing Pipeline Feb 24, 2026
@github-project-automation github-project-automation bot moved this to To Cherry Pick in 1.24 Servicing Pipeline Feb 24, 2026
@DHowett DHowett merged commit 1277751 into main Feb 24, 2026
18 of 20 checks passed
@DHowett DHowett deleted the dev/pabhoj/cmd_pal_preview_fix branch February 24, 2026 18:34
@DHowett DHowett moved this from To Cherry Pick to Cherry Picked in 1.24 Servicing Pipeline Feb 27, 2026
DHowett pushed a commit that referenced this pull request Feb 27, 2026
…xt changes (#19885)

Only respond to any search changes in the command palette if the command
palette is visible. Without this check, a previewable action's preview
can appear after the command palette is closed.

## Validation Steps Performed
Preview no longer appears after the command palette is closed

## PR Checklist
Closes #18737

(cherry picked from commit 1277751)
Service-Card-Id: PVTI_lADOAF3p4s4BBcTlzgmFfaU
Service-Version: 1.24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: To Cherry Pick
Status: Cherry Picked

3 participants