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 feedback-2
Joseph T. Lyonsd2362d7f12eb
diff --cc crates/workspace2/src/workspace2.rsindex 6eb8c623b43,abf90899297..b660b8cb7f1--- a/crates/workspace2/src/workspace2.rs+++ b/crates/workspace2/src/workspace2.rs@@@ -65,9 -66,8 +66,9 @@@ use std::time::Duration,};use theme::{ActiveTheme, ThemeSettings};- pub use toolbar::{ToolbarItemEvent, ToolbarItemLocation, ToolbarItemView};+ pub use toolbar::{Toolbar, ToolbarItemEvent, ToolbarItemLocation, ToolbarItemView};pub use ui;+// use ui::{h_stack, v_stack, StyledExt};use util::ResultExt;use uuid::Uuid;pub use workspace_settings::{AutosaveSetting, WorkspaceSettings};diff --cc crates/zed2/src/main.rsindex 2afbdf9fa1f,f11c2eaadd6..b97c4f40c33--- a/crates/zed2/src/main.rs+++ b/crates/zed2/src/main.rs@@@ -221,10 -221,10 +221,10 @@@ fn main()// language_tools::init(cx);call::init(app_state.client.clone(), app_state.user_store.clone(), cx);collab_ui::init(&app_state, cx);- // feedback::init(cx);+ feedback::init(cx);welcome::init(cx);- // cx.set_menus(menus::menus());+ cx.set_menus(app_menus());initialize_workspace(app_state.clone(), cx);if stdout_is_a_pty() {diff --cc crates/zed2/src/zed2.rsindex b3e521850a2,45ace75ebcc..669b7816b34--- a/crates/zed2/src/zed2.rs+++ b/crates/zed2/src/zed2.rs@@@ -94,30 -102,7 +102,32 @@@ pub fn initialize_workspace(app_state:cx.subscribe(&workspace_handle, {move |workspace, _, event, cx| {if let workspace::Event::PaneAdded(pane) = event {+ pane.update(cx, |pane, cx| {+ pane.toolbar().update(cx, |toolbar, cx| {+ let breadcrumbs = cx.build_view(|_| Breadcrumbs::new(workspace));+ toolbar.add_item(breadcrumbs, cx);+ let buffer_search_bar = cx.build_view(search::BufferSearchBar::new);+ toolbar.add_item(buffer_search_bar.clone(), cx);+ // todo!()+ // let quick_action_bar = cx.add_view(|_| {+ // QuickActionBar::new(buffer_search_bar, workspace)+ // });+ // toolbar.add_item(quick_action_bar, cx);+ let diagnostic_editor_controls =+ cx.build_view(|_| diagnostics::ToolbarControls::new());+ // toolbar.add_item(diagnostic_editor_controls, cx);+ // let project_search_bar = cx.add_view(|_| ProjectSearchBar::new());+ // toolbar.add_item(project_search_bar, cx);+ // let lsp_log_item =+ // cx.add_view(|_| language_tools::LspLogToolbarItemView::new());+ // toolbar.add_item(lsp_log_item, cx);+ // let syntax_tree_item = cx+ // .add_view(|_| language_tools::SyntaxTreeToolbarItemView::new());+ // toolbar.add_item(syntax_tree_item, cx);+ })+ });+++ initialize_pane(workspace, pane, cx);}}})