Skip to content

Commit a233346

Browse files
committed
Fix "rust-analyzer.debug" for QuickPick binaries.
1 parent be9b060 commit a233346

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

editors/code/src/cargo.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ export class Cargo {
4848

4949
async executableFromArgs(args: readonly string[]): Promise<string> {
5050
const cargoArgs = [...args, "--message-format=json"];
51+
if( cargoArgs[0] == "run" ) {
52+
// a runnable from the quick pick.
53+
cargoArgs[0] = "build";
54+
}
5155

5256
const artifacts = await this.artifactsFromArgs(cargoArgs);
5357

0 commit comments

Comments
 (0)