summaryrefslogtreecommitdiff
path: root/helix-core/src
diff options
context:
space:
mode:
authorDmitry Sharshakov2021-10-24 14:24:18 +0000
committerDmitry Sharshakov2021-10-24 14:24:18 +0000
commit6aa9838ea6c4c4a355796ef6dcc4dd28f2035c38 (patch)
tree8e701200b8e54aa6dae7ccf67b76beabd4991f23 /helix-core/src
parentd6e8a44d8510b2ae75d660a5f260d97e6dc7e797 (diff)
dap: support arrays as arguments
Diffstat (limited to 'helix-core/src')
-rw-r--r--helix-core/src/syntax.rs9
1 files changed, 8 insertions, 1 deletions
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
@@ -105,12 +105,19 @@ pub enum DebugConfigCompletion {
}
#[derive(Debug, PartialEq, Clone, Deserialize, Serialize)]
+#[serde(untagged)]
+pub enum DebugArgumentValue {
+ String(String),
+ Array(Vec<String>),
+}
+
+#[derive(Debug, PartialEq, Clone, Deserialize, Serialize)]
#[serde(rename_all = "kebab-case")]
pub struct DebugTemplate {
pub name: String,
pub request: String,
pub completion: Vec<DebugConfigCompletion>,
- pub args: HashMap<String, String>,
+ pub args: HashMap<String, DebugArgumentValue>,
}
#[derive(Debug, PartialEq, Clone, Deserialize, Serialize)]