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:
parent
489077befc
commit
dd63e25f23
1 changed files with 4 additions and 0 deletions
|
@ -346,7 +346,11 @@ impl TerminalBuilder {
|
||||||
alacritty_terminal::tty::Options {
|
alacritty_terminal::tty::Options {
|
||||||
shell: alac_shell,
|
shell: alac_shell,
|
||||||
working_directory: working_directory.clone(),
|
working_directory: working_directory.clone(),
|
||||||
|
#[cfg(target_os = "linux")]
|
||||||
hold: !matches!(shell.clone(), Shell::System),
|
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(),
|
env: env.into_iter().collect(),
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue