diff options
| author | Laurențiu Nicola <lnicola@dend.ro> | 2020-12-21 21:40:01 +0200 |
|---|---|---|
| committer | Laurențiu Nicola <lnicola@dend.ro> | 2020-12-21 21:40:01 +0200 |
| commit | 211551646f7b215980b45917fe61b0d901d73682 (patch) | |
| tree | f09f89d5d51f47f1bfd6cc31c551597f14fe6681 | |
| parent | 4c8a641f726b693f23943b184179e1be3a885313 (diff) | |
| download | rust-211551646f7b215980b45917fe61b0d901d73682.tar.gz rust-211551646f7b215980b45917fe61b0d901d73682.zip | |
Don't download x64 binaries on non-Mac arm64
| -rw-r--r-- | editors/code/src/main.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/editors/code/src/main.ts b/editors/code/src/main.ts index 6f196c7b8f0..4b2d3c8a557 100644 --- a/editors/code/src/main.ts +++ b/editors/code/src/main.ts @@ -287,10 +287,12 @@ 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" || process.arch === "arm64") { + if (process.arch === "x64" || process.arch === "ia32") { if (process.platform === "linux") platform = "linux"; if (process.platform === "darwin") platform = "mac"; if (process.platform === "win32") platform = "windows"; + } else if (process.arch === "arm64" && process.platform === "darwin") { + platform = "mac"; } if (platform === undefined) { vscode.window.showErrorMessage( |
