debugger: Add an action to rerun the last session (#31442)

This works the same as selecting the first history match in the new
session modal.

Release Notes:

- Debugger Beta: Added the `debugger: rerun last session` action, bound
by default to `alt-f4`.
This commit is contained in:
Cole Miller 2025-05-26 21:21:11 -04:00 committed by GitHub
parent 092be31b2b
commit 03071a9152
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 58 additions and 1 deletions

View file

@ -230,6 +230,10 @@ impl Inventory {
}
}
pub fn last_scheduled_scenario(&self) -> Option<&DebugScenario> {
self.last_scheduled_scenarios.back()
}
pub fn list_debug_scenarios(
&self,
task_contexts: &TaskContexts,