From afe228fd77f520281acfeda2841f92ba1fa5dd79 Mon Sep 17 00:00:00 2001 From: Remco Smits Date: Thu, 17 Oct 2024 20:14:12 +0200 Subject: [PATCH] Fix debug kind in debug panel item tab content --- crates/task/src/debug_format.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/crates/task/src/debug_format.rs b/crates/task/src/debug_format.rs index 8aa08cc447..51e60d1975 100644 --- a/crates/task/src/debug_format.rs +++ b/crates/task/src/debug_format.rs @@ -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 {