about summary refs log tree commit diff
path: root/editors/code/src
diff options
context:
space:
mode:
authorVladimir Serov <me@cab404.ru>2020-05-21 21:32:27 +0300
committerVladimir Serov <me@cab404.ru>2020-05-21 21:32:27 +0300
commitec5162fa7f2344ea86e11237383cb9d5ce5707aa (patch)
treea9cb401816f8222998ba69c76bc3bb4d03dd801c /editors/code/src
parent757292856b5d3653926e52dd4da473b062b9a832 (diff)
downloadrust-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.ts2
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);
     }