From 6aa9838ea6c4c4a355796ef6dcc4dd28f2035c38 Mon Sep 17 00:00:00 2001 From: Dmitry Sharshakov Date: Sun, 24 Oct 2021 17:24:18 +0300 Subject: dap: support arrays as arguments --- helix-core/src/syntax.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'helix-core') diff --git a/helix-core/src/syntax.rs b/helix-core/src/syntax.rs index 822d3181..441802a5 100644 --- a/helix-core/src/syntax.rs +++ b/helix-core/src/syntax.rs @@ -104,13 +104,20 @@ pub enum DebugConfigCompletion { Advanced(AdvancedCompletion), } +#[derive(Debug, PartialEq, Clone, Deserialize, Serialize)] +#[serde(untagged)] +pub enum DebugArgumentValue { + String(String), + Array(Vec), +} + #[derive(Debug, PartialEq, Clone, Deserialize, Serialize)] #[serde(rename_all = "kebab-case")] pub struct DebugTemplate { pub name: String, pub request: String, pub completion: Vec, - pub args: HashMap, + pub args: HashMap, } #[derive(Debug, PartialEq, Clone, Deserialize, Serialize)] -- cgit v1.2.3-70-g09d2