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 core-actions
Mikaylacaa0bae04f98
diff --cc crates/workspace2/src/workspace2.rsindex 1a5f3329b86,f938dcaa45a..2a8980895c2--- a/crates/workspace2/src/workspace2.rs+++ b/crates/workspace2/src/workspace2.rs@@@ -69,10 -69,10 +69,10 @@@ use std::};use theme2::ActiveTheme;pub use toolbar::{ToolbarItemLocation, ToolbarItemView};- use ui::{h_stack, Label};+ use ui::{h_stack, Button, ButtonVariant, Label, LabelColor};use util::ResultExt;use uuid::Uuid;-use workspace_settings::{AutosaveSetting, WorkspaceSettings};+pub use workspace_settings::{AutosaveSetting, WorkspaceSettings};lazy_static! {static ref ZED_WINDOW_SIZE: Option<Size<GlobalPixels>> = env::var("ZED_WINDOW_SIZE")diff --cc crates/zed2/src/zed2.rsindex 37c317fb61a,4385d966ef2..8f4a9c6ddf8--- a/crates/zed2/src/zed2.rs+++ b/crates/zed2/src/zed2.rs@@@ -16,45 -14,11 +16,47 @@@ use gpui::pub use only_instance::*;pub use open_listener::*;-use anyhow::Result;+use anyhow::{anyhow, Context as _, Result};+ use project_panel::ProjectPanel;-use std::sync::Arc;+use settings::{initial_local_settings_content, Settings};+use std::{borrow::Cow, ops::Deref, sync::Arc};+use util::{+ asset_str,+ channel::ReleaseChannel,+ paths::{self, LOCAL_SETTINGS_RELATIVE_PATH},+ ResultExt,+};use uuid::Uuid;-use workspace::{dock::PanelHandle as _, AppState, Workspace};+use workspace::{- create_and_open_local_file, notifications::simple_message_notification::MessageNotification,- open_new, AppState, NewFile, NewWindow, Workspace, WorkspaceSettings,++ create_and_open_local_file, dock::PanelHandle,++ notifications::simple_message_notification::MessageNotification, open_new, AppState, NewFile,++ NewWindow, Workspace, WorkspaceSettings,+};+use zed_actions::{OpenBrowser, OpenZedURL};++actions!(+ About,+ DebugElements,+ DecreaseBufferFontSize,+ Hide,+ HideOthers,+ IncreaseBufferFontSize,+ Minimize,+ OpenDefaultKeymap,+ OpenDefaultSettings,+ OpenKeymap,+ OpenLicenses,+ OpenLocalSettings,+ OpenLog,+ OpenSettings,+ OpenTelemetryLog,+ Quit,+ ResetBufferFontSize,+ ResetDatabase,+ ShowAll,+ ToggleFullScreen,+ Zoom,+);pub fn build_window_options(bounds: Option<WindowBounds>,