Revert "Bail and signal error when the cwd of a resolved task doesn't exist" (#32866)

Reverts zed-industries/zed#32777
This commit is contained in:
Cole Miller
2025-06-17 14:01:16 +00:00
committed by GitHub
parent b9dc5f9061
commit 6c7bcfe752
6 changed files with 4 additions and 54 deletions
+1 -10
View File
@@ -850,18 +850,9 @@ impl RunningState {
(task, None)
}
};
let Some(task) = task_template.resolve_task_and_check_cwd("debug-build-task", &task_context, cx.background_executor().clone()) else {
let Some(task) = task_template.resolve_task("debug-build-task", &task_context) else {
anyhow::bail!("Could not resolve task variables within a debug scenario");
};
let task = match task.await {
Ok(task) => task,
Err(e) => {
workspace.update(cx, |workspace, cx| {
workspace.show_error(&e, cx);
}).ok();
return Err(e)
}
};
let locator_name = if let Some(locator_name) = locator_name {
debug_assert!(!config_is_valid);