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 authored and GitHub committed 2026-05-21 23:00:06 +00:00
1 parent 76837f3fa1
commit 7d423cc000
1 file changed
+6
+6
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();