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:
parent
e9a756b5fc
commit
dc01aef0cf
12 changed files with 460 additions and 527 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue