Skip to content
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

Ensure only one reload extension dialog can be shown at a time #1473

Merged

Conversation

plemarquand
Copy link
Contributor

If showReloadExtensionNotification is in flight and being awaited then return the promise being awaited instead of showing another dialog.

Also, debounce showReloadExtensionNotification with a 5 second window because its possible for users to close the first dialog very fast and have another one appear immediately if we update several settings at a time that require an extension restart.

Issue: #1471

If `showReloadExtensionNotification` is in flight and being awaited then
return the promise being awaited instead of showing another dialog.

Also, debounce `showReloadExtensionNotification` with a 5 second window
because its possible for users to close the first dialog very fast and
have another one appear immediately if we update several settings at a
time that require an extension restart.

Issue: swiftlang#1471
Copy link
Contributor

@rbenegal rbenegal left a comment

Choose a reason for hiding this comment

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

Seems to work great thanks!

@plemarquand plemarquand merged commit 7e92f4c into swiftlang:main Mar 31, 2025
13 of 15 checks passed
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