Use better fallback for empty rerun action (#32031)
When invoking the task rerun action before any task had been run, it falls back to task selection modal. Adjust this fall back to use the debugger view, if available: Before:  After:  Release Notes: - N/A
This commit is contained in:
parent
faa0bb51c9
commit
936ad0bf10
1 changed files with 8 additions and 1 deletions
|
@ -80,7 +80,14 @@ pub fn init(cx: &mut App) {
|
|||
);
|
||||
}
|
||||
} else {
|
||||
toggle_modal(workspace, None, window, cx).detach();
|
||||
spawn_task_or_modal(
|
||||
workspace,
|
||||
&Spawn::ViaModal {
|
||||
reveal_target: None,
|
||||
},
|
||||
window,
|
||||
cx,
|
||||
);
|
||||
};
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue