extension: Always use a real HTTP client in the ExtensionBuilder (#15514)

This PR makes it so we always construct a real HTTP client in the
`ExtensionBuilder`.

This used to be the case, but was inadvertently changed in
https://github.com/zed-industries/zed/pull/15470.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2024-07-30 18:04:53 -04:00 committed by GitHub
parent a7ffc2b6f3
commit a08e020e32
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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(),