Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Always allow rerunning the tasks using the tab button (#20591)
Kirill Bulatov7e82ca80825b
diff --git a/crates/terminal_view/src/terminal_view.rs b/crates/terminal_view/src/terminal_view.rsindex 6bd1496c974..de501ab80a5 100644--- a/crates/terminal_view/src/terminal_view.rs+++ b/crates/terminal_view/src/terminal_view.rs@@ -1046,14 +1046,20 @@ impl Item for TerminalView {.on_click(move |_, cx| {cx.dispatch_action(Box::new(tasks_ui::Rerun {task_id: Some(task_id.clone()),- ..tasks_ui::Rerun::default()+ allow_concurrent_runs: Some(true),+ use_new_terminal: Some(false),+ reevaluate_context: false,}));})};let (icon, icon_color, rerun_button) = match terminal.task() {Some(terminal_task) => match &terminal_task.status {- TaskStatus::Running => (IconName::Play, Color::Disabled, None),+ TaskStatus::Running => (+ IconName::Play,+ Color::Disabled,+ Some(rerun_button(terminal_task.id.clone())),+ ),TaskStatus::Unknown => (IconName::Warning,Color::Warning,