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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user