Fix "rust-analyzer.debug" for QuickPick binaries.
This commit is contained in:
parent
be9b0609d5
commit
a233346a2d
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user