Fix debug kind in debug panel item tab content

This commit is contained in:
Remco Smits
2024-10-17 20:14:12 +02:00
parent fdea7d9de9
commit afe228fd77

View File

@@ -51,6 +51,18 @@ pub enum DebugAdapterKind {
Lldb,
}
impl std::fmt::Display for DebugAdapterKind {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.write_str(match self {
Self::Custom(_) => "Custom",
Self::Python => "Python",
Self::PHP => "PHP",
Self::Javascript => "JavaScript",
Self::Lldb => "LLDB",
})
}
}
/// Custom arguments used to setup a custom debugger
#[derive(Deserialize, Serialize, PartialEq, Eq, JsonSchema, Clone, Debug)]
pub struct CustomArgs {