Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix Rust LSP adapter on FreeBSD (#20736)
Caleb Heydon4327459d2a3d
diff --git a/crates/languages/src/rust.rs b/crates/languages/src/rust.rsindex c5e1fab9d3b..730f20b134f 100644--- a/crates/languages/src/rust.rs+++ b/crates/languages/src/rust.rs@@ -36,6 +36,12 @@ impl RustLspAdapter {const ARCH_SERVER_NAME: &str = "unknown-linux-gnu";}+#[cfg(target_os = "freebsd")]+impl RustLspAdapter {+ const GITHUB_ASSET_KIND: AssetKind = AssetKind::Gz;+ const ARCH_SERVER_NAME: &str = "unknown-freebsd";+}+#[cfg(target_os = "windows")]impl RustLspAdapter {const GITHUB_ASSET_KIND: AssetKind = AssetKind::Zip;