Ensure ExtensionBuilder
respects the proxy settings (#14899)
Release Notes: - N/A --------- Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
This commit is contained in:
parent
0a9d50bf01
commit
9c26d07f7a
5 changed files with 13 additions and 5 deletions
|
@ -13,6 +13,7 @@ use extension::{
|
|||
extension_builder::{CompileExtensionOptions, ExtensionBuilder},
|
||||
ExtensionManifest,
|
||||
};
|
||||
use http::HttpClientWithProxy;
|
||||
use language::LanguageConfig;
|
||||
use theme::ThemeRegistry;
|
||||
use tree_sitter::{Language, Query, WasmStore};
|
||||
|
@ -58,7 +59,9 @@ async fn main() -> Result<()> {
|
|||
let mut manifest = ExtensionManifest::load(fs.clone(), &extension_path).await?;
|
||||
|
||||
log::info!("compiling extension");
|
||||
let builder = ExtensionBuilder::new(scratch_dir);
|
||||
|
||||
let http_client = Arc::new(HttpClientWithProxy::new(None));
|
||||
let builder = ExtensionBuilder::new(http_client, scratch_dir);
|
||||
builder
|
||||
.compile_extension(
|
||||
&extension_path,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue