diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-12-21 19:28:37 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-21 19:28:37 +0000 |
| commit | 4c8a641f726b693f23943b184179e1be3a885313 (patch) | |
| tree | 2911a6109c66e00298ce088e5fe12251561acf5b | |
| parent | e86344745e29ba812c9c2d7502a2365d22ef9a64 (diff) | |
| parent | 6089c6b1eac90027116812f0e843bfd841101391 (diff) | |
| download | rust-4c8a641f726b693f23943b184179e1be3a885313.tar.gz rust-4c8a641f726b693f23943b184179e1be3a885313.zip | |
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 <leson.phung@gmail.com>
| -rw-r--r-- | editors/code/src/main.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/code/src/main.ts b/editors/code/src/main.ts index a763194d630..6f196c7b8f0 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 if (config.package.releaseTag === null) return "rust-analyzer"; let platform: string | undefined; - if (process.arch === "x64" || process.arch === "ia32") { + if (process.arch === "x64" || process.arch === "ia32" || process.arch === "arm64") { if (process.platform === "linux") platform = "linux"; if (process.platform === "darwin") platform = "mac"; if (process.platform === "win32") platform = "windows"; |
