fixup! feat: add debug code lens

avoid repetition of `--no-run`
This commit is contained in:
Hannes De Valkeneer 2020-03-12 21:28:26 +01:00
parent a034257e5e
commit e9d025b618
3 changed files with 13 additions and 18 deletions

View file

@ -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);
};
}