Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Rebase main and fix error
Petros Amoiridis5302c256a4aa
diff --git a/crates/collab_ui/src/branches_button.rs b/crates/collab_ui/src/branches_button.rsindex 7acc7a8ed32..6b9fb9fb72b 100644--- a/crates/collab_ui/src/branches_button.rs+++ b/crates/collab_ui/src/branches_button.rs@@ -111,11 +111,12 @@ impl View for BranchesButton {impl BranchesButton {pub fn new(workspace: ViewHandle<Workspace>, cx: &mut ViewContext<Self>) -> Self {+ let parent_id = cx.view_id();cx.observe(&workspace, |_, _, cx| cx.notify()).detach();Self {workspace: workspace.downgrade(),popup_menu: cx.add_view(|cx| {- let mut menu = ContextMenu::new(cx);+ let mut menu = ContextMenu::new(parent_id, cx);menu.set_position_mode(OverlayPositionMode::Local);menu}),