From 011aa715cfe4260ba2dcef6ce97eaaefaa14ae13 Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Wed, 7 May 2025 23:39:31 +0300 Subject: [PATCH] Fix workspace update notifications not being suppressed (#30180) Follow-up of https://github.com/zed-industries/zed/pull/30015 Release Notes: - N/A --- crates/workspace/src/notifications.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/workspace/src/notifications.rs b/crates/workspace/src/notifications.rs index 603a25044eb6b4b4e3ea6f48a1537069bb8d7d41..c48fe9aeb92441e62ed6c5955e96f4b9f68a6d2d 100644 --- a/crates/workspace/src/notifications.rs +++ b/crates/workspace/src/notifications.rs @@ -811,6 +811,13 @@ pub fn show_app_notification( } }) .detach(); + cx.subscribe(¬ification, { + let id = id.clone(); + move |workspace: &mut Workspace, _, _: &SuppressEvent, cx| { + workspace.suppress_notification(&id, cx); + } + }) + .detach(); notification.into() } });