From a233346a2d08bde9869d86d14e67ca3290c10cb2 Mon Sep 17 00:00:00 2001 From: vsrs Date: Thu, 14 May 2020 13:30:05 +0300 Subject: Fix "rust-analyzer.debug" for QuickPick binaries. --- editors/code/src/cargo.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'editors/code') 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 { 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); -- cgit v1.2.3