remote_server: Remove dependency on libssl and libcrypto (#15446)
Fixes: #15599 Release Notes: - N/A --------- Co-authored-by: Mikayla <mikayla@zed.dev> Co-authored-by: Conrad <conrad@zed.dev>
This commit is contained in:
parent
9016de5d63
commit
2c8a6ee7cc
41 changed files with 670 additions and 226 deletions
|
@ -190,6 +190,7 @@ pub fn init(
|
|||
None,
|
||||
fs,
|
||||
client.http_client().clone(),
|
||||
client.http_client().clone(),
|
||||
Some(client.telemetry().clone()),
|
||||
node_runtime,
|
||||
language_registry,
|
||||
|
@ -225,6 +226,7 @@ impl ExtensionStore {
|
|||
build_dir: Option<PathBuf>,
|
||||
fs: Arc<dyn Fs>,
|
||||
http_client: Arc<HttpClientWithUrl>,
|
||||
builder_client: Arc<dyn HttpClient>,
|
||||
telemetry: Option<Arc<Telemetry>>,
|
||||
node_runtime: Arc<dyn NodeRuntime>,
|
||||
language_registry: Arc<LanguageRegistry>,
|
||||
|
@ -244,12 +246,7 @@ impl ExtensionStore {
|
|||
extension_index: Default::default(),
|
||||
installed_dir,
|
||||
index_path,
|
||||
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,
|
||||
)),
|
||||
builder: Arc::new(ExtensionBuilder::new(builder_client, build_dir)),
|
||||
outstanding_operations: Default::default(),
|
||||
modified_extensions: Default::default(),
|
||||
reload_complete_senders: Vec::new(),
|
||||
|
@ -830,7 +827,6 @@ impl ExtensionStore {
|
|||
let mut extension_manifest =
|
||||
ExtensionManifest::load(fs.clone(), &extension_source_path).await?;
|
||||
let extension_id = extension_manifest.id.clone();
|
||||
|
||||
if !this.update(&mut cx, |this, cx| {
|
||||
match this.outstanding_operations.entry(extension_id.clone()) {
|
||||
btree_map::Entry::Occupied(_) => return false,
|
||||
|
@ -854,7 +850,6 @@ impl ExtensionStore {
|
|||
.ok();
|
||||
}
|
||||
});
|
||||
|
||||
cx.background_executor()
|
||||
.spawn({
|
||||
let extension_source_path = extension_source_path.clone();
|
||||
|
@ -885,10 +880,8 @@ impl ExtensionStore {
|
|||
bail!("extension {extension_id} is already installed");
|
||||
}
|
||||
}
|
||||
|
||||
fs.create_symlink(output_path, extension_source_path)
|
||||
.await?;
|
||||
|
||||
this.update(&mut cx, |this, cx| this.reload(None, cx))?
|
||||
.await;
|
||||
Ok(())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue