diff --git a/editors/code/src/cargo.ts b/editors/code/src/cargo.ts index 2a2c2e0e1b..ba286c0abf 100644 --- a/editors/code/src/cargo.ts +++ b/editors/code/src/cargo.ts @@ -48,6 +48,10 @@ export class Cargo { async executableFromArgs(args: readonly string[]): Promise { const cargoArgs = [...args, "--message-format=json"]; + if( cargoArgs[0] == "run" ) { + // a runnable from the quick pick. + cargoArgs[0] = "build"; + } const artifacts = await this.artifactsFromArgs(cargoArgs);