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: Always use a real HTTP client in the `ExtensionBuilder` (#15514)

Marshall Bowersa08e020e32cf
diff --git a/crates/extension/src/extension_store.rs b/crates/extension/src/extension_store.rs
index f5bcd082853..41e269f9a07 100644
--- a/crates/extension/src/extension_store.rs
+++ b/crates/extension/src/extension_store.rs
@@ -243,7 +243,12 @@ impl ExtensionStore {
extension_index: Default::default(),
installed_dir,
index_path,
- builder: Arc::new(ExtensionBuilder::new(http_client.clone(), build_dir)),
+ builder: Arc::new(ExtensionBuilder::new(
+ // Construct a real HTTP client for the extension builder, as we
+ // don't want to use a fake one in the tests.
+ ::http_client::client(None, http_client.proxy().cloned()),
+ build_dir,
+ )),
outstanding_operations: Default::default(),
modified_extensions: Default::default(),
reload_complete_senders: Vec::new(),