Add following into channel notes

co-authored-by: max <max@zed.dev>
This commit is contained in:
Mikayla
2023-08-24 11:25:20 -07:00
co-authored by max
parent 7e83138805
commit 199be8241c
6 changed files with 128 additions and 17 deletions
+2 -1
View File
@@ -49,11 +49,12 @@ impl FollowableItem for Editor {
fn from_state_proto(
pane: ViewHandle<workspace::Pane>,
project: ModelHandle<Project>,
workspace: ViewHandle<Workspace>,
remote_id: ViewId,
state: &mut Option<proto::view::Variant>,
cx: &mut AppContext,
) -> Option<Task<Result<ViewHandle<Self>>>> {
let project = workspace.read(cx).project().to_owned();
let Some(proto::view::Variant::Editor(_)) = state else { return None };
let Some(proto::view::Variant::Editor(state)) = state.take() else { unreachable!() };