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 user-menu

Conrad Irwin7e1d61d116c8
diff --cc crates/auto_update2/src/auto_update.rs
index e1e1de0da4f,4bf2bca0633..79269acc27e
--- a/crates/auto_update2/src/auto_update.rs
+++ b/crates/auto_update2/src/auto_update.rs
@@@ -6,9 -6,10 +6,10 @@@ use db::kvp::KEY_VALUE_STORE
use db::RELEASE_CHANNEL;
use gpui::{
actions, AppContext, AsyncAppContext, Context as _, Model, ModelContext, SemanticVersion, Task,
- ViewContext, VisualContext,
+ ViewContext, VisualContext, WindowContext,
};
use isahc::AsyncBody;
+
use serde::Deserialize;
use serde_derive::Serialize;
use smol::io::AsyncReadExt;
diff --cc crates/collab_ui2/Cargo.toml
index 6249e9fdaff,9d84d7f887c..da13da83068
--- a/crates/collab_ui2/Cargo.toml
+++ b/crates/collab_ui2/Cargo.toml
@@@ -46,8 -46,8 +46,8 @@@ rpc = { package ="rpc2", path = "../rp
settings = { package = "settings2", path = "../settings2" }
feature_flags = { package = "feature_flags2", path = "../feature_flags2"}
theme = { package = "theme2", path = "../theme2" }
-# theme_selector = { path = "../theme_selector" }
+theme_selector = { package = "theme_selector2", path = "../theme_selector2" }
- # vcs_menu = { path = "../vcs_menu" }
+ vcs_menu = { package = "vcs_menu2", path = "../vcs_menu2" }
ui = { package = "ui2", path = "../ui2" }
util = { path = "../util" }
workspace = { package = "workspace2", path = "../workspace2" }
diff --cc crates/collab_ui2/src/collab_titlebar_item.rs
index 276455151e0,2c48a66a1d7..b127708fa69
--- a/crates/collab_ui2/src/collab_titlebar_item.rs
+++ b/crates/collab_ui2/src/collab_titlebar_item.rs
@@@ -3,10 -2,10 +3,10 @@@ use auto_update::AutoUpdateStatus
use call::{ActiveCall, ParticipantLocation, Room};
use client::{proto::PeerId, Client, ParticipantIndex, User, UserStore};
use gpui::{
- actions, canvas, div, overlay, point, px, rems, AnyElement, AppContext, DismissEvent, Div,
- Element, FocusableView, Hsla, InteractiveElement, IntoElement, Model, ParentElement, Path,
+ actions, canvas, div, overlay, point, px, rems, Action, AnyElement, AppContext, DismissEvent,
+ Div, Element, FocusableView, Hsla, InteractiveElement, IntoElement, Model, ParentElement, Path,
- Render, Stateful, StatefulInteractiveElement, Styled, Subscription, ViewContext, VisualContext,
- WeakView, WindowBounds,
+ Render, Stateful, StatefulInteractiveElement, Styled, Subscription, View, ViewContext,
+ VisualContext, WeakView, WindowBounds,
};
use project::{Project, RepositoryEntry};
use recent_projects::RecentProjects;
@@@ -51,8 -51,9 +52,8 @@@ pub struct CollabTitlebarItem
user_store: Model<UserStore>,
client: Arc<Client>,
workspace: WeakView<Workspace>,
- //branch_popover: Option<ViewHandle<BranchList>>,
+ branch_popover: Option<View<BranchList>>,
project_popover: Option<recent_projects::RecentProjects>,
- //user_menu: ViewHandle<ContextMenu>,
_subscriptions: Vec<Subscription>,
}
@@@ -284,7 -336,13 +285,7 @@@ impl CollabTitlebarItem
project,
user_store,
client,
- // branch_popover: None,
- // user_menu: cx.add_view(|cx| {
- // let view_id = cx.view_id();
- // let mut menu = ContextMenu::new(view_id, cx);
- // menu.set_position_mode(OverlayPositionMode::Local);
- // menu
- // }),
+ branch_popover: None,
project_popover: None,
_subscriptions: subscriptions,
}