Skip to content

Commit 2115516

Browse files
committed
Don't download x64 binaries on non-Mac arm64
1 parent 4c8a641 commit 2115516

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

editors/code/src/main.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,10 +287,12 @@ async function getServer(config: Config, state: PersistentState): Promise<string
287287
if (config.package.releaseTag === null) return "rust-analyzer";
288288

289289
let platform: string | undefined;
290-
if (process.arch === "x64" || process.arch === "ia32" || process.arch === "arm64") {
290+
if (process.arch === "x64" || process.arch === "ia32") {
291291
if (process.platform === "linux") platform = "linux";
292292
if (process.platform === "darwin") platform = "mac";
293293
if (process.platform === "win32") platform = "windows";
294+
} else if (process.arch === "arm64" && process.platform === "darwin") {
295+
platform = "mac";
294296
}
295297
if (platform === undefined) {
296298
vscode.window.showErrorMessage(

0 commit comments

Comments
 (0)