Remove vscode_lldb setting

This commit is contained in:
Aleksey Kladov
2020-04-02 12:56:14 +02:00
parent e21bf1b2b9
commit 7a4ebd2c8d
3 changed files with 18 additions and 20 deletions

View File

@@ -810,23 +810,21 @@ pub fn handle_code_lens(
};
lenses.push(lens);
if world.config.vscode_lldb {
if r.args[0] == "run" {
r.args[0] = "build".into();
} else {
r.args.push("--no-run".into());
}
let debug_lens = CodeLens {
range: r.range,
command: Some(Command {
title: "Debug".into(),
command: "rust-analyzer.debugSingle".into(),
arguments: Some(vec![to_value(r).unwrap()]),
}),
data: None,
};
lenses.push(debug_lens);
if r.args[0] == "run" {
r.args[0] = "build".into();
} else {
r.args.push("--no-run".into());
}
let debug_lens = CodeLens {
range: r.range,
command: Some(Command {
title: "Debug".into(),
command: "rust-analyzer.debugSingle".into(),
arguments: Some(vec![to_value(r).unwrap()]),
}),
data: None,
};
lenses.push(debug_lens);
}
// Handle impls