Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Merge branch 'main' into panic-hunting

Mikayla6e84d8fbc01c
diff --cc crates/workspace2/src/dock.rs
index 8bc07b6e90f,9fa95fe07e1..614fbbc1632
--- a/crates/workspace2/src/dock.rs
+++ b/crates/workspace2/src/dock.rs
@@@ -719,15 -717,12 +717,9 @@@ impl Render for PanelButtons
&& panel.position_is_valid(position, cx)
{
let panel = panel.clone();
-- menu = menu.entry(
- ListItem::new(
- position.to_label(),
- Label::new(format!("Dock {}", position.to_label())),
- ),
- format!("Dock {}", position.to_label()),
-- move |_, cx| {
-- panel.set_position(position, cx);
-- },
-- )
++ menu = menu.entry(position.to_label(), move |_, cx| {
++ panel.set_position(position, cx);
++ })
}
}
menu
diff --cc crates/workspace2/src/pane_group.rs
index 3f114217782,eeea0bd3657..cf9b7bd921d
--- a/crates/workspace2/src/pane_group.rs
+++ b/crates/workspace2/src/pane_group.rs
@@@ -230,18 -226,15 +226,17 @@@ impl Member
// .bg(cx.theme().colors().editor)
// .children();
}
- Member::Axis(axis) => axis.render(
- project,
- basis + 1,
- follower_states,
- active_pane,
- zoomed,
- app_state,
- cx,
- ),
+ Member::Axis(axis) => axis
+ .render(
+ project,
+ basis + 1,
+ follower_states,
- active_call,
+ active_pane,
+ zoomed,
+ app_state,
+ cx,
+ )
+ .into_any(),
}
// enum FollowIntoExternalProject {}
@@@ -558,7 -551,7 +553,6 @@@ impl PaneAxis
project: &Model<Project>,
basis: usize,
follower_states: &HashMap<View<Pane>, FollowerState>,
- active_call: Option<&Model<ActiveCall>>,
-
active_pane: &View<Pane>,
zoomed: Option<&AnyWeakView>,
app_state: &Arc<AppState>,