From 91b1f60e5b2954827db73926b4fadc1bfd30a629 Mon Sep 17 00:00:00 2001 From: "gcp-cherry-pick-bot[bot]" <98988430+gcp-cherry-pick-bot[bot]@users.noreply.github.com> Date: Thu, 8 May 2025 09:20:02 +0300 Subject: [PATCH] Fix workspace update notifications not being suppressed (cherry-pick #30180) (#30205) Cherry-picked Fix workspace update notifications not being suppressed (#30180) Follow-up of https://github.com/zed-industries/zed/pull/30015 Release Notes: - N/A Co-authored-by: Kirill Bulatov --- 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() } });