debugger: Fix global debug tasks not being picked up (#33664)
Release Notes: - Fixed a bug which caused global debug scenarios (from global .zed/debug.json) to not be picked up.
This commit is contained in:
parent
3db452eec7
commit
42c59014a9
2 changed files with 81 additions and 0 deletions
|
@ -2975,6 +2975,20 @@ impl Project {
|
|||
}),
|
||||
Err(_) => {}
|
||||
},
|
||||
SettingsObserverEvent::LocalDebugScenariosUpdated(result) => match result {
|
||||
Err(InvalidSettingsError::Debug { message, path }) => {
|
||||
let message =
|
||||
format!("Failed to set local debug scenarios in {path:?}:\n{message}");
|
||||
cx.emit(Event::Toast {
|
||||
notification_id: format!("local-debug-scenarios-{path:?}").into(),
|
||||
message,
|
||||
});
|
||||
}
|
||||
Ok(path) => cx.emit(Event::HideToast {
|
||||
notification_id: format!("local-debug-scenarios-{path:?}").into(),
|
||||
}),
|
||||
Err(_) => {}
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue