debugger: Update New Session Modal (#30018)

This PR simplifies the new session modal by flattening its three modes
and updating the UI to be less noisy. The new UI also defaults to the
Debug Scenario Picker, and allows users to save debug scenarios created
in the UI to the active worktree's .zed/debug.json file.


Release Notes:

- N/A
This commit is contained in:
Anthony Eid 2025-05-08 18:19:14 +02:00 committed by GitHub
parent e9a756b5fc
commit dc01aef0cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 460 additions and 527 deletions

View file

@ -216,9 +216,9 @@ pub fn tasks_file() -> &'static PathBuf {
}
/// Returns the path to the `debug.json` file.
pub fn debug_tasks_file() -> &'static PathBuf {
static DEBUG_TASKS_FILE: OnceLock<PathBuf> = OnceLock::new();
DEBUG_TASKS_FILE.get_or_init(|| config_dir().join("debug.json"))
pub fn debug_scenarios_file() -> &'static PathBuf {
static DEBUG_SCENARIOS_FILE: OnceLock<PathBuf> = OnceLock::new();
DEBUG_SCENARIOS_FILE.get_or_init(|| config_dir().join("debug.json"))
}
/// Returns the path to the extensions directory.