mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 20:43:21 +00:00
Fix "rust-analyzer.debug" for QuickPick binaries.
This commit is contained in:
parent
be9b0609d5
commit
a233346a2d
1 changed files with 4 additions and 0 deletions
|
@ -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…
Reference in a new issue