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:

![before](https://github.com/user-attachments/assets/737d2dc1-15a4-4eea-a5f9-4aff6c7600cc)


After:

![after](https://github.com/user-attachments/assets/43381b85-5167-44e7-a8b0-865a64eaa6ea)


Release Notes:

- N/A
This commit is contained in:
Kirill Bulatov 2025-06-04 01:45:37 +03:00 committed by GitHub
parent faa0bb51c9
commit 936ad0bf10
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,
);
};
});
},