Skip to content

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

Merged
Dustin L. Howett (DHowett) merged 4 commits into
mainfrom
dev/pabhoj/cmd_pal_preview_fix
Feb 24, 2026
Merged

Dustin L. Howett (DHowett) merged 4 commits into
mainfrom
dev/pabhoj/cmd_pal_preview_fix

Conversation

@PankajBhojwani

@PankajBhojwani PankajBhojwani commented Feb 18, 2026 •

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

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
Copy Markdown
Contributor

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
Copy Markdown
Member

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

@PankajBhojwani

Copy link
Copy Markdown
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.

@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
Dustin L. Howett (DHowett) merged commit 1277751 into main Feb 24, 2026
18 of 20 checks passed
@DHowett
Dustin L. Howett (DHowett) deleted the dev/pabhoj/cmd_pal_preview_fix branch February 24, 2026 18:34
@DHowett Dustin L. Howett (DHowett) moved this from To Cherry Pick to Cherry Picked in 1.24 Servicing Pipeline Feb 27, 2026
Dustin L. Howett (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
@DHowett Dustin L. Howett (DHowett) moved this from Cherry Picked to Validated in 1.24 Servicing Pipeline Apr 30, 2026
@DHowett Dustin L. Howett (DHowett) moved this from Validated to Shipped in 1.24 Servicing Pipeline Apr 30, 2026
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

4 participants