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>
This commit is contained in:
bors[bot] 2020-12-21 19:28:37 +00:00 committed by GitHub
commit 4c8a641f72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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";