debugger: Fix up Rust test tasks definitions (#30232)
Closes #ISSUE Release Notes: - N/A --------- Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
This commit is contained in:
co-authored by
Conrad Irwin
parent
3cc8850a58
commit
ee56706d15
@@ -663,7 +663,9 @@ impl LspCommand for GetLspRunnables {
|
||||
// We cannot escape all shell arguments unconditionally, as we use this for ssh commands, which may involve paths starting with `~`.
|
||||
// That bit is not auto-expanded when using single quotes.
|
||||
// Escape extra cargo args unconditionally as those are unlikely to contain `~`.
|
||||
.map(|extra_arg| format!("'{extra_arg}'")),
|
||||
.flat_map(|extra_arg| {
|
||||
shlex::try_quote(&extra_arg).ok().map(|s| s.to_string())
|
||||
}),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user