Fix Rust LSP adapter on FreeBSD (#20736)

This PR fixes the Rust LSP adapter on FreeBSD. This issue was creating
build errors.

Release Notes:

- Fixed Rust LSP adapter on FreeBSD
This commit is contained in:
Caleb Heydon 2024-11-15 13:03:55 -05:00 committed by GitHub
parent cc601bd770
commit 4327459d2a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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