Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

extension_host: Remove duplicate linker registration (#25361)

Marshall Bowersa9e753fc0755
diff --git a/crates/extension_host/src/wasm_host/wit/since_v0_2_0.rs b/crates/extension_host/src/wasm_host/wit/since_v0_2_0.rs
index 7005bc7b75e..cc86ebaa2e4 100644
--- a/crates/extension_host/src/wasm_host/wit/since_v0_2_0.rs
+++ b/crates/extension_host/src/wasm_host/wit/since_v0_2_0.rs
@@ -39,18 +39,7 @@ pub type ExtensionKeyValueStore = Arc<dyn KeyValueStoreDelegate>;
pub fn linker() -> &'static Linker<WasmState> {
static LINKER: OnceLock<Linker<WasmState>> = OnceLock::new();
- LINKER.get_or_init(|| {
- super::new_linker(|linker, f| {
- Extension::add_to_linker(linker, f)?;
- latest::zed::extension::github::add_to_linker(linker, f)?;
- latest::zed::extension::http_client::add_to_linker(linker, f)?;
- latest::zed::extension::lsp::add_to_linker(linker, f)?;
- latest::zed::extension::nodejs::add_to_linker(linker, f)?;
- latest::zed::extension::platform::add_to_linker(linker, f)?;
- latest::zed::extension::slash_command::add_to_linker(linker, f)?;
- Ok(())
- })
- })
+ LINKER.get_or_init(|| super::new_linker(Extension::add_to_linker))
}
impl From<Command> for latest::Command {