Open chrisgrieser opened 6 months ago
Would you mind describing the use case to be able to do this?
In my plugin, I want to keep certain notifications on screen for a bit longer (using timeout = false
). When I then want to dismiss the notification, the option I have is to dismiss all notifications, which has the undesired side effect of also dismissing any other notifications (from other plugins or from the user) as well
the concrete use case: In my plugin tinygit, I want to display commit-diffstats while the user is entering a commit message
Right now, we can use a notification id to replace a notification, and we can use
dismiss
to dismiss all notifications. Would it be possible to dismiss a specific notification by id?