From fd07fef4dbc475381706c338e9600bd099af162d Mon Sep 17 00:00:00 2001 From: ClanEver <562211524@qq.com> Date: Wed, 25 Sep 2024 00:27:29 +0800 Subject: [PATCH] Fix proxy settings retrieval on startup (#18171) Closes https://github.com/zed-industries/zed/issues/18155 Release Notes: - N/A --- crates/zed/src/main.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/zed/src/main.rs b/crates/zed/src/main.rs index 309931f61635287de9f0bde6d62610451c38a1cc..e3fe2baefa9b6ce65f700dfcedf9e8363e44d035 100644 --- a/crates/zed/src/main.rs +++ b/crates/zed/src/main.rs @@ -443,6 +443,8 @@ fn main() { AppCommitSha::set_global(AppCommitSha(build_sha.into()), cx); } settings::init(cx); + handle_settings_file_changes(user_settings_file_rx, cx, handle_settings_changed); + handle_keymap_file_changes(user_keymap_file_rx, cx, handle_keymap_changed); client::init_settings(cx); let user_agent = format!( "Zed/{} ({}; {})", @@ -470,9 +472,6 @@ fn main() { OpenListener::set_global(cx, open_listener.clone()); - handle_settings_file_changes(user_settings_file_rx, cx, handle_settings_changed); - handle_keymap_file_changes(user_keymap_file_rx, cx, handle_keymap_changed); - let client = Client::production(cx); cx.set_http_client(client.http_client().clone()); let mut languages = LanguageRegistry::new(cx.background_executor().clone());