Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
proto: Remove deprecated active view fields from call.proto (#45979)
Xiaobo Liue97f7b508fbb
diff --git a/crates/proto/proto/call.proto b/crates/proto/proto/call.protoindex 9e801515af3..a7fe607bb5a 100644--- a/crates/proto/proto/call.proto+++ b/crates/proto/proto/call.proto@@ -305,8 +305,7 @@ message Follow {message FollowResponse {View active_view = 3;- // TODO: Remove after version 0.145.x stabilizes.- optional ViewId active_view_id = 1;+ reserved 1;repeated View views = 2;}@@ -316,7 +315,6 @@ message UpdateFollowers {reserved 3;oneof variant {View create_view = 5;- // TODO: Remove after version 0.145.x stabilizes.UpdateActiveView update_active_view = 4;UpdateView update_view = 6;}@@ -334,8 +332,7 @@ message ViewId {}message UpdateActiveView {- optional ViewId id = 1;- optional PeerId leader_id = 2;+ reserved 1, 2;View view = 3;}diff --git a/crates/workspace/src/workspace.rs b/crates/workspace/src/workspace.rsindex d12aa4f5a8e..71459eea7c6 100644--- a/crates/workspace/src/workspace.rs+++ b/crates/workspace/src/workspace.rs@@ -4945,8 +4945,6 @@ impl Workspace {cx.notify();proto::FollowResponse {- // TODO: Remove after version 0.145.x stabilizes.- active_view_id: active_view.as_ref().and_then(|view| view.id.clone()),views: active_view.iter().cloned().collect(),active_view,}@@ -5220,19 +5218,14 @@ impl Workspace {&& let Some(variant) = item.to_state_proto(window, cx){let view = Some(proto::View {- id: id.clone(),+ id,leader_id: leader_peer_id,variant: Some(variant),panel_id: panel_id.map(|id| id as i32),});is_project_item = item.is_project_item(window, cx);- update = proto::UpdateActiveView {- view,- // TODO: Remove after version 0.145.x stabilizes.- id,- leader_id: leader_peer_id,- };+ update = proto::UpdateActiveView { view };};}}