Fix "rust-analyzer.debug" for QuickPick binaries.

This commit is contained in:
vsrs 2020-05-14 13:30:05 +03:00
parent be9b0609d5
commit a233346a2d

View file

@ -48,6 +48,10 @@ export class Cargo {
async executableFromArgs(args: readonly string[]): Promise<string> {
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);