aboutsummaryrefslogtreecommitdiff
path: root/editors/code
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-12-21 19:28:37 +0000
committerGitHub <[email protected]>2020-12-21 19:28:37 +0000
commit4c8a641f726b693f23943b184179e1be3a885313 (patch)
tree2911a6109c66e00298ce088e5fe12251561acf5b /editors/code
parente86344745e29ba812c9c2d7502a2365d22ef9a64 (diff)
parent6089c6b1eac90027116812f0e843bfd841101391 (diff)
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]>
Diffstat (limited to 'editors/code')
-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 a763194d6..6f196c7b8 100644
--- a/editors/code/src/main.ts
+++ b/editors/code/src/main.ts
@@ -287,7 +287,7 @@ async function getServer(config: Config, state: PersistentState): Promise<string
287 if (config.package.releaseTag === null) return "rust-analyzer"; 287 if (config.package.releaseTag === null) return "rust-analyzer";
288 288
289 let platform: string | undefined; 289 let platform: string | undefined;
290 if (process.arch === "x64" || process.arch === "ia32") { 290 if (process.arch === "x64" || process.arch === "ia32" || process.arch === "arm64") {
291 if (process.platform === "linux") platform = "linux"; 291 if (process.platform === "linux") platform = "linux";
292 if (process.platform === "darwin") platform = "mac"; 292 if (process.platform === "darwin") platform = "mac";
293 if (process.platform === "win32") platform = "windows"; 293 if (process.platform === "win32") platform = "windows";