Skip to content

Commit ec5162f

Browse files
committed
editors/vscode: forgotten await in os check
1 parent 7572928 commit ec5162f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editors/code/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ async function getServer(config: Config, state: PersistentState): Promise<string
280280
await download(artifact.browser_download_url, dest, "Downloading rust-analyzer server", { mode: 0o755 });
281281

282282
// Patching executable if that's NixOS.
283-
if (fs.stat("/etc/nixos").then(_ => true).catch(_ => false)) {
283+
if (await fs.stat("/etc/nixos").then(_ => true).catch(_ => false)) {
284284
await patchelf(dest);
285285
}
286286

0 commit comments

Comments
 (0)