mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-17 17:33:07 +00:00
editors/vscode: forgotten await in os check
This commit is contained in:
parent
757292856b
commit
ec5162fa7f
@ -280,7 +280,7 @@ async function getServer(config: Config, state: PersistentState): Promise<string
|
||||
await download(artifact.browser_download_url, dest, "Downloading rust-analyzer server", { mode: 0o755 });
|
||||
|
||||
// Patching executable if that's NixOS.
|
||||
if (fs.stat("/etc/nixos").then(_ => true).catch(_ => false)) {
|
||||
if (await fs.stat("/etc/nixos").then(_ => true).catch(_ => false)) {
|
||||
await patchelf(dest);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user