diff options
author | Dmitry Sharshakov | 2021-10-24 14:24:18 +0000 |
---|---|---|
committer | Dmitry Sharshakov | 2021-10-24 14:24:18 +0000 |
commit | 6aa9838ea6c4c4a355796ef6dcc4dd28f2035c38 (patch) | |
tree | 8e701200b8e54aa6dae7ccf67b76beabd4991f23 /helix-core | |
parent | d6e8a44d8510b2ae75d660a5f260d97e6dc7e797 (diff) |
dap: support arrays as arguments
Diffstat (limited to 'helix-core')
-rw-r--r-- | helix-core/src/syntax.rs | 9 |
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)] |