Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Allow Zed Nightly to use v0.0.7 of the Zed extension API (#14209)
Marshall Bowers37fc4ce09d53
diff --git a/crates/extension/src/wasm_host/wit.rs b/crates/extension/src/wasm_host/wit.rsindex 25e928c9724..8aeb3c49936 100644--- a/crates/extension/src/wasm_host/wit.rs+++ b/crates/extension/src/wasm_host/wit.rs@@ -49,10 +49,9 @@ pub fn is_supported_wasm_api_version(/// Returns the Wasm API version range that is supported by the Wasm host.#[inline(always)]pub fn wasm_api_version_range(release_channel: ReleaseChannel) -> RangeInclusive<SemanticVersion> {- let max_version = if release_channel == ReleaseChannel::Dev {- latest::MAX_VERSION- } else {- since_v0_0_6::MAX_VERSION+ let max_version = match release_channel {+ ReleaseChannel::Dev | ReleaseChannel::Nightly => latest::MAX_VERSION,+ ReleaseChannel::Stable | ReleaseChannel::Preview => since_v0_0_6::MAX_VERSION,};since_v0_0_1::MIN_VERSION..=max_version