Debug lens fix for a binary.

This commit is contained in:
vsrs 2020-05-20 09:42:00 +03:00
parent efac093093
commit d264d7b9f2

View file

@ -51,11 +51,15 @@ export class Cargo {
// arguments for a runnable from the quick pick should be updated. // arguments for a runnable from the quick pick should be updated.
// see crates\rust-analyzer\src\main_loop\handlers.rs, handle_code_lens // see crates\rust-analyzer\src\main_loop\handlers.rs, handle_code_lens
if (cargoArgs[0] === "run") { switch (cargoArgs[0]) {
cargoArgs[0] = "build"; case "run": cargoArgs[0] = "build"; break;
} else if (cargoArgs.indexOf("--no-run") === -1) { case "test": {
if (cargoArgs.indexOf("--no-run") === -1) {
cargoArgs.push("--no-run"); cargoArgs.push("--no-run");
} }
break;
}
}
let artifacts = await this.artifactsFromArgs(cargoArgs); let artifacts = await this.artifactsFromArgs(cargoArgs);
if (cargoArgs[0] === "test") { if (cargoArgs[0] === "test") {