Skip to content

Commit 4c8a641

Browse files
Merge #6990
6990: Allow code extension to download binary in apple arm r=lnicola a=phungleson Apple chip has a new `arch`. It subsequently downloads Intel version of `rust-analyzer` but it works regardless. Co-authored-by: Son <[email protected]>
2 parents e863447 + 6089c6b commit 4c8a641

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
@@ -287,7 +287,7 @@ 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") {
290+
if (process.arch === "x64" || process.arch === "ia32" || process.arch === "arm64") {
291291
if (process.platform === "linux") platform = "linux";
292292
if (process.platform === "darwin") platform = "mac";
293293
if (process.platform === "win32") platform = "windows";

0 commit comments

Comments
 (0)