pub mod assets; pub mod editor; pub mod file_finder; pub mod fs; mod fuzzy; pub mod language; pub mod menus; mod operation_queue; pub mod rpc; pub mod settings; mod sum_tree; #[cfg(any(test, feature = "test-support"))] pub mod test; pub mod theme; pub mod theme_selector; mod time; mod util; pub mod workspace; pub mod worktree; pub use settings::Settings; use parking_lot::Mutex; use postage::watch; use std::sync::Arc; use zrpc::ForegroundRouter; pub struct AppState { pub settings_tx: Arc>>, pub settings: watch::Receiver, pub languages: Arc, pub themes: Arc, pub rpc_router: Arc, pub rpc: rpc::Client, pub fs: Arc, } pub fn init(cx: &mut gpui::MutableAppContext) { cx.add_global_action("app:quit", quit); } fn quit(_: &(), cx: &mut gpui::MutableAppContext) { cx.platform().quit(); }