Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-term/src/commands/dap.rs')
-rw-r--r--helix-term/src/commands/dap.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/helix-term/src/commands/dap.rs b/helix-term/src/commands/dap.rs
index f6f11d12..074bef6d 100644
--- a/helix-term/src/commands/dap.rs
+++ b/helix-term/src/commands/dap.rs
@@ -164,6 +164,13 @@ pub fn dap_start_impl(
arr.iter().map(|v| v.replace(&pattern, &param)).collect(),
),
DebugArgumentValue::Boolean(_) => value,
+ DebugArgumentValue::Table(map) => DebugArgumentValue::Table(
+ map.into_iter()
+ .map(|(mk, mv)| {
+ (mk.replace(&pattern, &param), mv.replace(&pattern, &param))
+ })
+ .collect(),
+ ),
};
}
}
@@ -182,6 +189,9 @@ pub fn dap_start_impl(
DebugArgumentValue::Boolean(bool) => {
args.insert(k, to_value(bool).unwrap());
}
+ DebugArgumentValue::Table(map) => {
+ args.insert(k, to_value(map).unwrap());
+ }
}
}