editors/vscode: forgotten await in os check

This commit is contained in:
Vladimir Serov 2020-05-21 21:32:27 +03:00
parent 757292856b
commit ec5162fa7f
No known key found for this signature in database
GPG key ID: 6BA7C26C3FDF7BB3

View file

@ -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 }); await download(artifact.browser_download_url, dest, "Downloading rust-analyzer server", { mode: 0o755 });
// Patching executable if that's NixOS. // 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); await patchelf(dest);
} }