Skip to content

CmdPal: Handle exceptions when enqueuing callbacks to UI thread in IconCacheService #40716

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 1 commit into
base: main
Choose a base branch
from

Conversation

jiripolasek
Copy link
Contributor

Summary of the Pull Request

Handle exceptions thrown in TryEnqueue callbacks so they don’t crash the app (as they cannot be caught by the global exception handler). Any exceptions are now returned to the caller for handling. Additionally, a failure to enqueue the operation onto the dispatcher will also result in an exception.

This is not a breaking change, as exceptions only propagate within the class and do not affect external callers.

Ref: #38260

PR Checklist

Detailed Description of the Pull Request / Additional comments

Validation Steps Performed

…ervice

Handle exceptions thrown in TryEnqueue callbacks so they don’t crash the app (as they cannot be caught by the global exception handler). Any exceptions are now returned to the caller for handling. Additionally, a failure to enqueue the operation onto the dispatcher will also result in an exception.

This is not a breaking change, as exceptions only propagate within the class and do not affect external callers.

Ref: microsoft#38260
@jiripolasek jiripolasek changed the title Handle exceptions when enqueuing callbacks to UI thread in IconCacheService CmdPal: Handle exceptions when enqueuing callbacks to UI thread in IconCacheService Jul 19, 2025
@michaeljolley michaeljolley added the Product-Command Palette Refers to the Command Palette utility label Jul 19, 2025
@zadjii-msft
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@zadjii-msft
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Product-Command Palette Refers to the Command Palette utility
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants