terminal: Drain task output on completion (#23085)

Now we ensure that task output is fully drained and printed to Zed
terminal pane on task completion.

This change depends on a recent change to alacritty_terminal crate:
5e78d20c70.

Closes https://github.com/zed-industries/zed/issues/18342

Release Notes:

- Fixed missing task terminal output on Linux for short-running commands
This commit is contained in:
Andrew Borg (Kashin) 2025-01-17 08:00:53 +00:00 committed by GitHub
parent d4d36d1adf
commit 2ef4883937
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 13 additions and 24 deletions

View file

@ -376,7 +376,7 @@ impl TerminalBuilder {
working_directory: working_directory
.clone()
.or_else(|| Some(home_dir().to_path_buf())),
hold: false,
drain_on_exit: true,
env: env.into_iter().collect(),
}
};
@ -441,7 +441,7 @@ impl TerminalBuilder {
term.clone(),
ZedListener(events_tx.clone()),
pty,
pty_options.hold,
pty_options.drain_on_exit,
false,
)?;