Detect new releases of codex-acp (#39388)
Now we use GitHub Releases to detect when there's a new version of codex-acp out, and we notify the user in the same way we do for the other external agents. This also moves `github_download.rs` out of the `languages` crate and into `http_client`, because now we're not just using it for language servers anymore, we're also using it for external agents. Release Notes: - N/A --------- Co-authored-by: Lukas Wirth <me@lukaswirth.dev>
This commit is contained in:
co-authored by
Lukas Wirth
parent
3ab5103de1
commit
662ec9977f
@@ -3,6 +3,7 @@ use async_trait::async_trait;
|
||||
use futures::StreamExt;
|
||||
use gpui::{App, AsyncApp};
|
||||
use http_client::github::{AssetKind, GitHubLspBinaryVersion, latest_github_release};
|
||||
use http_client::github_download::{GithubBinaryMetadata, download_server_binary};
|
||||
pub use language::*;
|
||||
use lsp::{InitializeParams, LanguageServerBinary, LanguageServerName};
|
||||
use project::lsp_store::clangd_ext;
|
||||
@@ -11,8 +12,6 @@ use smol::fs;
|
||||
use std::{env::consts, path::PathBuf, sync::Arc};
|
||||
use util::{ResultExt, fs::remove_matching, maybe, merge_json_value_into};
|
||||
|
||||
use crate::github_download::{GithubBinaryMetadata, download_server_binary};
|
||||
|
||||
pub struct CLspAdapter;
|
||||
|
||||
impl CLspAdapter {
|
||||
@@ -119,7 +118,7 @@ impl LspInstaller for CLspAdapter {
|
||||
}
|
||||
}
|
||||
download_server_binary(
|
||||
delegate,
|
||||
&*delegate.http_client(),
|
||||
&url,
|
||||
expected_digest.as_deref(),
|
||||
&container_dir,
|
||||
|
||||
Reference in New Issue
Block a user