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.

windows: Do not exit from app in dev builds when cli is not found (#39768)

Piotr Osiewicz5fa4b3bfe893
diff --git a/crates/zed/src/main.rs b/crates/zed/src/main.rs
index db8d8736bd7..3c5b7177721 100644
--- a/crates/zed/src/main.rs
+++ b/crates/zed/src/main.rs
@@ -224,7 +224,9 @@ pub fn main() {
Ok(path) => askpass::set_askpass_program(path),
Err(err) => {
eprintln!("Error: {}", err);
- process::exit(1);
+ if std::option_env!("ZED_BUNDLE").is_some() {
+ process::exit(1);
+ }
}
}