We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent abef76b commit a4ecaa7Copy full SHA for a4ecaa7
editors/code/src/cargo.ts
@@ -48,9 +48,13 @@ export class Cargo {
48
49
async executableFromArgs(args: readonly string[]): Promise<string> {
50
const cargoArgs = [...args, "--message-format=json"];
51
+
52
+ // arguments for a runnable from the quick pick should be updated.
53
+ // see crates\rust-analyzer\src\main_loop\handlers.rs, handle_code_lens
54
if (cargoArgs[0] === "run") {
- // a runnable from the quick pick.
55
cargoArgs[0] = "build";
56
+ } else if (cargoArgs.indexOf("--no-run") === -1) {
57
+ cargoArgs.push("--no-run");
58
}
59
60
let artifacts = await this.artifactsFromArgs(cargoArgs);
0 commit comments