-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Allow notifications (info/warn/error) to be cancelled/hidden #46551
Comments
@jrieken not sure if this has been asked already. I think it would be nice if extensions could hide a notification but I am not sure how to best do this with the current API that returns a |
Is there some sort of cancellation token we could pass into |
Or maybe something like |
@DanTup a |
Not a fan. A notification is a strong distractor and once extensions show them they grab the attention of the user. Giving them the opportunity to hide them isn't something I'd like us to support because the worst would be notifications that come and go and keep distracting me. |
/duplicate of #44122 |
Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines. Happy Coding! |
I understand, but there are many places where we end up with a worse user experience. For example, I was just implementing some refactors, like I know there are shortcuts to get to the notifications, but many users won't know them, they'll just get annoyed that these error messages hang around after they've already dealt with them. |
I noticed in a fix for something else there's a hideAfterTimeout call in the notifications. I've never seen a notification hide on its own (except for the bug I raised). Is there something specific I need to do to make sure they're purged in this code? Does it only happen if there are no buttons (I can't see anything obvious in the code). |
Sometime I pop up notifications based on the state of the project, like this one to offer to restore packages:
Sometimes the user performs another action that makes this redundant (for example when you launch a Flutter app with
F5
it automatically restores packages as it launches). It would be nice if there was a way to cancel the notification so it disappears on its own rather than hanging around when it makes no more sense.The text was updated successfully, but these errors were encountered: