mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
use async version
This commit is contained in:
parent
c943057038
commit
d13f6ba750
3 changed files with 28 additions and 20 deletions
|
@ -107,7 +107,8 @@ export async function buildCargoTask(
|
|||
// Check whether we must use a user-defined substitute for cargo.
|
||||
// Split on spaces to allow overrides like "wrapper cargo".
|
||||
const overrideCargo = definition.overrideCargo ?? definition.overrideCargo;
|
||||
const cargoCommand = overrideCargo?.split(" ") ?? [toolchain.cargoPath()];
|
||||
const cargoPath = await toolchain.cargoPath();
|
||||
const cargoCommand = overrideCargo?.split(" ") ?? [cargoPath];
|
||||
|
||||
const fullCommand = [...cargoCommand, ...args];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue