Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Disable minidump generation on dev builds (again) (#36716)

Julia Ryan20a0c3e92050
diff --git a/crates/zed/src/reliability.rs b/crates/zed/src/reliability.rs
index 646a3af5bbc..e9acaa588da 100644
--- a/crates/zed/src/reliability.rs
+++ b/crates/zed/src/reliability.rs
@@ -60,7 +60,9 @@ pub fn init_panic_hook(
.or_else(|| info.payload().downcast_ref::<String>().cloned())
.unwrap_or_else(|| "Box<Any>".to_string());
- crashes::handle_panic(payload.clone(), info.location());
+ if *release_channel::RELEASE_CHANNEL != ReleaseChannel::Dev {
+ crashes::handle_panic(payload.clone(), info.location());
+ }
let thread = thread::current();
let thread_name = thread.name().unwrap_or("<unnamed>");