lsp/next-ls: Fix wrong nls binary being fetched. (#3181)
CPU types had to be swapped around. Fixed zed-industries/community#2185 Release Notes: - Fixed Elixir next-ls LSP installation failing due to fetching a binary for the wrong architecture (zed-industries/community#2185).
This commit is contained in:
parent
4986d4771d
commit
dc8a853842
1 changed files with 2 additions and 2 deletions
|
@ -321,8 +321,8 @@ impl LspAdapter for NextLspAdapter {
|
||||||
latest_github_release("elixir-tools/next-ls", false, delegate.http_client()).await?;
|
latest_github_release("elixir-tools/next-ls", false, delegate.http_client()).await?;
|
||||||
let version = release.name.clone();
|
let version = release.name.clone();
|
||||||
let platform = match consts::ARCH {
|
let platform = match consts::ARCH {
|
||||||
"x86_64" => "darwin_arm64",
|
"x86_64" => "darwin_amd64",
|
||||||
"aarch64" => "darwin_amd64",
|
"aarch64" => "darwin_arm64",
|
||||||
other => bail!("Running on unsupported platform: {other}"),
|
other => bail!("Running on unsupported platform: {other}"),
|
||||||
};
|
};
|
||||||
let asset_name = format!("next_ls_{}", platform);
|
let asset_name = format!("next_ls_{}", platform);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue