mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
fixup! feat: add debug code lens
avoid repetition of `--no-run`
This commit is contained in:
parent
a034257e5e
commit
e9d025b618
3 changed files with 13 additions and 18 deletions
|
@ -67,12 +67,6 @@ export function debugSingle(ctx: Ctx): Cmd {
|
|||
const editor = ctx.activeRustEditor;
|
||||
if (!editor) return;
|
||||
|
||||
if (config.args[0] === 'run') {
|
||||
config.args[0] = 'build';
|
||||
} else {
|
||||
config.args.push('--no-run');
|
||||
}
|
||||
|
||||
const debugConfig = {
|
||||
type: "lldb",
|
||||
request: "launch",
|
||||
|
@ -83,6 +77,7 @@ export function debugSingle(ctx: Ctx): Cmd {
|
|||
args: config.extraArgs,
|
||||
cwd: config.cwd
|
||||
};
|
||||
|
||||
return vscode.debug.startDebugging(undefined, debugConfig);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue