aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src
diff options
context:
space:
mode:
authorvsrs <[email protected]>2020-05-14 11:30:05 +0100
committervsrs <[email protected]>2020-05-14 11:30:05 +0100
commita233346a2d08bde9869d86d14e67ca3290c10cb2 (patch)
tree73a47306548ac79e9c25bbe0bb37d3a64c139585 /editors/code/src
parentbe9b0609d55f9f49e4473b4ab2bc55583974fc2f (diff)
Fix "rust-analyzer.debug" for QuickPick binaries.
Diffstat (limited to 'editors/code/src')
-rw-r--r--editors/code/src/cargo.ts4
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