mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-30 14:17:02 +00:00
commit
59d0feafc5
2 changed files with 3 additions and 1 deletions
|
@ -183,6 +183,8 @@ macro_rules! impl_actions {
|
||||||
Ok(std::boxed::Box::new(gpui::serde_json::from_value::<Self>(value)?))
|
Ok(std::boxed::Box::new(gpui::serde_json::from_value::<Self>(value)?))
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
gpui::register_action!($name);
|
||||||
)*
|
)*
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,7 +24,7 @@ use anyhow::Result;
|
||||||
|
|
||||||
const TERMINAL_PANEL_KEY: &'static str = "TerminalPanel";
|
const TERMINAL_PANEL_KEY: &'static str = "TerminalPanel";
|
||||||
|
|
||||||
actions!(terminal_view, [ToggleFocus]);
|
actions!(terminal_panel, [ToggleFocus]);
|
||||||
|
|
||||||
pub fn init(cx: &mut AppContext) {
|
pub fn init(cx: &mut AppContext) {
|
||||||
cx.observe_new_views(
|
cx.observe_new_views(
|
||||||
|
|
Loading…
Reference in a new issue