From 28c9cd2271364a481611ae5b1698ad51cd201ecc Mon Sep 17 00:00:00 2001 From: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com> Date: Wed, 8 Oct 2025 17:14:58 +0200 Subject: [PATCH] windows: Do not exit from app in dev builds when cli is not found (#39768) Release Notes: - N/A --- crates/zed/src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/zed/src/main.rs b/crates/zed/src/main.rs index db8d8736bd77de3367291dfb7e263012d2baa53d..3c5b71777219c269fcbd0512170bc8b760d3b29e 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); + } } }