diff options
Diffstat (limited to 'editors/zed/files/patch-crates_zed_src_main.rs')
| -rw-r--r-- | editors/zed/files/patch-crates_zed_src_main.rs | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/editors/zed/files/patch-crates_zed_src_main.rs b/editors/zed/files/patch-crates_zed_src_main.rs new file mode 100644 index 000000000000..71fe4f854f1d --- /dev/null +++ b/editors/zed/files/patch-crates_zed_src_main.rs @@ -0,0 +1,34 @@ +--- crates/zed/src/main.rs.orig 2025-11-14 23:13:53 UTC ++++ crates/zed/src/main.rs +@@ -8,6 +8,7 @@ use collections::HashMap; + use client::{Client, ProxySettings, UserStore, parse_zed_link}; + use collab_ui::channel_view::ChannelView; + use collections::HashMap; ++#[cfg(not(target_os = "freebsd"))] + use crashes::InitCrashHandler; + use db::kvp::{GLOBAL_KEY_VALUE_STORE, KEY_VALUE_STORE}; + use editor::Editor; +@@ -174,6 +175,7 @@ pub fn main() { + } + + // `zed --crash-handler` Makes zed operate in minidump crash handler mode ++ #[cfg(not(target_os = "freebsd"))] + if let Some(socket) = &args.crash_handler { + crashes::crash_server(socket.as_path()); + return; +@@ -284,6 +286,7 @@ pub fn main() { + let session_id = Uuid::new_v4().to_string(); + let session = app.background_executor().block(Session::new()); + ++ #[cfg(not(target_os = "freebsd"))] + app.background_executor() + .spawn(crashes::init(InitCrashHandler { + session_id: session_id.clone(), +@@ -541,6 +544,7 @@ pub fn main() { + auto_update::init(client.http_client(), cx); + dap_adapters::init(cx); + auto_update_ui::init(cx); ++ #[cfg(not(target_os = "freebsd"))] + reliability::init( + client.http_client(), + system_id.as_ref().map(|id| id.to_string()), |
