chore: Sever terminal_view <-> tasks_ui dependency (#20946)

Closes #ISSUE

Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz 2024-11-21 01:07:14 +01:00 committed by GitHub
parent cbba44900d
commit 536d7e5355
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 56 additions and 53 deletions

View file

@ -24,7 +24,6 @@ itertools.workspace = true
language.workspace = true
project.workspace = true
task.workspace = true
tasks_ui.workspace = true
search.workspace = true
serde.workspace = true
serde_json.workspace = true

View file

@ -218,7 +218,7 @@ impl TerminalPanel {
// context menu will be gone the moment we spawn the modal.
.action(
"Spawn task",
tasks_ui::Spawn::modal().boxed_clone(),
zed_actions::Spawn::modal().boxed_clone(),
)
});

View file

@ -1044,8 +1044,8 @@ impl Item for TerminalView {
.shape(ui::IconButtonShape::Square)
.tooltip(|cx| Tooltip::text("Rerun task", cx))
.on_click(move |_, cx| {
cx.dispatch_action(Box::new(tasks_ui::Rerun {
task_id: Some(task_id.clone()),
cx.dispatch_action(Box::new(zed_actions::Rerun {
task_id: Some(task_id.0.clone()),
allow_concurrent_runs: Some(true),
use_new_terminal: Some(false),
reevaluate_context: false,