Fix a missing follower update on re-activate (#7918)

This could cause following to get into a bad state temporarily

Release Notes:

- Fixed a bug around following if the follow started while the workspace
was inactive.
This commit is contained in:
Conrad Irwin
2024-02-16 11:33:49 -07:00
committed by GitHub
parent 5df1318e75
commit 43e8fdbe82
3 changed files with 64 additions and 6 deletions
-2
View File
@@ -2743,7 +2743,6 @@ impl Workspace {
cx.notify();
self.last_active_view_id = active_view_id.clone();
proto::FollowResponse {
active_view_id,
views: self
@@ -2917,7 +2916,6 @@ impl Workspace {
pub fn update_active_view_for_followers(&mut self, cx: &mut WindowContext) {
let mut is_project_item = true;
let mut update = proto::UpdateActiveView::default();
if cx.is_window_active() {
if let Some(item) = self.active_item(cx) {
if item.focus_handle(cx).contains_focused(cx) {