diff options
-rw-r--r-- | editors/code/src/cargo.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/editors/code/src/cargo.ts b/editors/code/src/cargo.ts index 2a2c2e0e1..ba286c0ab 100644 --- a/editors/code/src/cargo.ts +++ b/editors/code/src/cargo.ts | |||
@@ -48,6 +48,10 @@ export class Cargo { | |||
48 | 48 | ||
49 | async executableFromArgs(args: readonly string[]): Promise<string> { | 49 | async executableFromArgs(args: readonly string[]): Promise<string> { |
50 | const cargoArgs = [...args, "--message-format=json"]; | 50 | const cargoArgs = [...args, "--message-format=json"]; |
51 | if( cargoArgs[0] == "run" ) { | ||
52 | // a runnable from the quick pick. | ||
53 | cargoArgs[0] = "build"; | ||
54 | } | ||
51 | 55 | ||
52 | const artifacts = await this.artifactsFromArgs(cargoArgs); | 56 | const artifacts = await this.artifactsFromArgs(cargoArgs); |
53 | 57 | ||