diff --git a/crates/tasks_ui/src/lib.rs b/crates/tasks_ui/src/lib.rs index 4cda5af2b70ce..ab7b510a1eb9f 100644 --- a/crates/tasks_ui/src/lib.rs +++ b/crates/tasks_ui/src/lib.rs @@ -83,7 +83,7 @@ pub fn init(cx: &mut AppContext) { let task_context = task_context(workspace, cx); - let _ = cx.spawn(|workspace, mut cx| async move { + cx.spawn(|workspace, mut cx| async move { let task_context = task_context.await; let Some(workspace) = workspace.upgrade() else { return; @@ -120,7 +120,8 @@ pub fn init(cx: &mut AppContext) { ); }) .log_err(); - }); + }) + .detach(); } } else { toggle_modal(workspace, None, cx).detach();