Revert hold: true for macOS tasks (#14376)

Otherwise, ctrl-c makes them stuck being held from time to time

Follow-up of https://github.com/zed-industries/zed/pull/13898 that
reverts the macOS-related part of the PR.

Release Notes:

- N/A
This commit is contained in:
Kirill Bulatov 2024-07-13 04:02:38 +03:00 committed by GitHub
parent 489077befc
commit dd63e25f23
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -346,7 +346,11 @@ impl TerminalBuilder {
alacritty_terminal::tty::Options {
shell: alac_shell,
working_directory: working_directory.clone(),
#[cfg(target_os = "linux")]
hold: !matches!(shell.clone(), Shell::System),
// with hold: true, macOS gets tasks stuck on ctrl-c interrupts periodically
#[cfg(not(target_os = "linux"))]
hold: false,
env: env.into_iter().collect(),
}
};