mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +00:00
Merge #6991
6991: Don't download x64 binaries on non-Mac arm64 r=lnicola a=lnicola bors r+ Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
This commit is contained in:
commit
ba71685343
1 changed files with 3 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue