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.

Focus workspace on launch

Conrad Irwinec3bb0f090cb
diff --git a/crates/zed2/src/zed2.rs b/crates/zed2/src/zed2.rs
index 84cacccb5ad..e7be98d45b5 100644
--- a/crates/zed2/src/zed2.rs
+++ b/crates/zed2/src/zed2.rs
@@ -10,8 +10,8 @@ pub use assets::*;
use collections::VecDeque;
use editor::{Editor, MultiBuffer};
use gpui::{
- actions, point, px, AppContext, Context, PromptLevel, TitlebarOptions, ViewContext,
- VisualContext, WindowBounds, WindowKind, WindowOptions,
+ actions, point, px, AppContext, Context, FocusableView, PromptLevel, TitlebarOptions,
+ ViewContext, VisualContext, WindowBounds, WindowKind, WindowOptions,
};
pub use only_instance::*;
pub use open_listener::*;
@@ -425,6 +425,8 @@ pub fn initialize_workspace(app_state: Arc<AppState>, cx: &mut AppContext) {
}
}
});
+
+ workspace.focus_handle(cx).focus(cx);
//todo!()
// load_default_keymap(cx);
})