From 7b519477f0df7d4dfef2314e21a1124917989787 Mon Sep 17 00:00:00 2001 From: Felix Zeller Date: Tue, 24 Feb 2026 02:37:16 -0800 Subject: [PATCH] Fix backward compatibility for v0.0.4 GitHub extension bindings (#49858) ## Summary - Route `zed:extension/github` in `since_v0_0_4` to the `since_v0_6_0` bindings - Call `latest_github_release` through `since_v0_6_0` for compatibility with the v0.0.4 extension API Release Notes: - Fixed backward compatibility for v0.0.4 extension API GitHub bindings. --- crates/extension_host/src/wasm_host/wit/since_v0_0_4.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/extension_host/src/wasm_host/wit/since_v0_0_4.rs b/crates/extension_host/src/wasm_host/wit/since_v0_0_4.rs index 11b2e9f66187ea04983b83ace5814620e7ae7f53..6d7db749f0cd021bfb084eba1bc20ce72780f3d8 100644 --- a/crates/extension_host/src/wasm_host/wit/since_v0_0_4.rs +++ b/crates/extension_host/src/wasm_host/wit/since_v0_0_4.rs @@ -1,4 +1,4 @@ -use super::latest; +use super::{latest, since_v0_6_0}; use crate::wasm_host::WasmState; use anyhow::Result; use extension::WorktreeDelegate; @@ -15,7 +15,7 @@ wasmtime::component::bindgen!({ path: "../extension_api/wit/since_v0.0.4", with: { "worktree": ExtensionWorktree, - "zed:extension/github": latest::zed::extension::github, + "zed:extension/github": since_v0_6_0::zed::extension::github, "zed:extension/platform": latest::zed::extension::platform, }, }); @@ -129,7 +129,7 @@ impl ExtensionImports for WasmState { repo: String, options: GithubReleaseOptions, ) -> wasmtime::Result> { - latest::zed::extension::github::Host::latest_github_release(self, repo, options).await + since_v0_6_0::zed::extension::github::Host::latest_github_release(self, repo, options).await } async fn current_platform(&mut self) -> Result<(Os, Architecture)> {