sidebar: Remove pending indicator from header when visiting project again (#57454)

Quick follow-up to https://github.com/zed-industries/zed/pull/57322. We
weren't removing the pending notification when re-visiting the project
that contains the pending thread (only while the project is still
collapsed, though).

Release Notes:

- N/A
This commit is contained in:
Danilo Leal 2026-05-21 20:00:06 -03:00 committed by GitHub
parent 78749a4c2a
commit 776b8304b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1632,6 +1632,12 @@ impl Sidebar {
}
}
}
if is_active
&& let Some(ActiveEntry::Thread { thread_id, .. }) = self.active_entry.as_ref()
{
notified_threads.remove(thread_id);
}
}
let has_visible_rows = !threads.is_empty() || !terminals.is_empty();