Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix workspace update notifications not being suppressed (#30180)
Kirill Bulatov011aa715cfe4
diff --git a/crates/workspace/src/notifications.rs b/crates/workspace/src/notifications.rsindex 603a25044eb..c48fe9aeb92 100644--- a/crates/workspace/src/notifications.rs+++ b/crates/workspace/src/notifications.rs@@ -811,6 +811,13 @@ pub fn show_app_notification<V: Notification + 'static>(}}).detach();+ cx.subscribe(¬ification, {+ let id = id.clone();+ move |workspace: &mut Workspace, _, _: &SuppressEvent, cx| {+ workspace.suppress_notification(&id, cx);+ }+ })+ .detach();notification.into()}});