Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Read settings in headless mode (#10950)
Conrad Irwin64617a0ede83
diff --git a/crates/zed/src/main.rs b/crates/zed/src/main.rsindex ea5aafcb66c..0ee87f7f41d 100644--- a/crates/zed/src/main.rs+++ b/crates/zed/src/main.rs@@ -138,6 +138,13 @@ fn init_headless(dev_server_token: DevServerToken) {languages::init(languages.clone(), node_runtime.clone(), cx);let user_store = cx.new_model(|cx| UserStore::new(client.clone(), cx));+ let user_settings_file_rx = watch_config_file(+ &cx.background_executor(),+ fs.clone(),+ paths::SETTINGS.clone(),+ );+ handle_settings_file_changes(user_settings_file_rx, cx);+headless::init(client.clone(),headless::AppState {