diff options
| author | Vladimir Serov <me@cab404.ru> | 2020-05-21 21:32:27 +0300 |
|---|---|---|
| committer | Vladimir Serov <me@cab404.ru> | 2020-05-21 21:32:27 +0300 |
| commit | ec5162fa7f2344ea86e11237383cb9d5ce5707aa (patch) | |
| tree | a9cb401816f8222998ba69c76bc3bb4d03dd801c /editors/code/src | |
| parent | 757292856b5d3653926e52dd4da473b062b9a832 (diff) | |
| download | rust-ec5162fa7f2344ea86e11237383cb9d5ce5707aa.tar.gz rust-ec5162fa7f2344ea86e11237383cb9d5ce5707aa.zip | |
editors/vscode: forgotten await in os check
Diffstat (limited to 'editors/code/src')
| -rw-r--r-- | editors/code/src/main.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/code/src/main.ts b/editors/code/src/main.ts index dbb2411921b..42685e0c76d 100644 --- a/editors/code/src/main.ts +++ b/editors/code/src/main.ts @@ -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); } |
