Update copilot to Copilot.vim 1.41.0 (#20520)
Release Notes:
- Update Copilot's underlying version to [Copilot.vim
1.41.0](8703812380
)
Co-authored-by: Antonio <antonio@zed.dev>
This commit is contained in:
parent
89f9a506f9
commit
35798212c4
1 changed files with 3 additions and 3 deletions
|
@ -14,7 +14,7 @@ use gpui::{
|
|||
actions, AppContext, AsyncAppContext, Context, Entity, EntityId, EventEmitter, Global, Model,
|
||||
ModelContext, Task, WeakModel,
|
||||
};
|
||||
use http_client::github::latest_github_release;
|
||||
use http_client::github::get_release_by_tag_name;
|
||||
use http_client::HttpClient;
|
||||
use language::{
|
||||
language_settings::{all_language_settings, language_settings, InlineCompletionProvider},
|
||||
|
@ -989,12 +989,12 @@ async fn clear_copilot_dir() {
|
|||
}
|
||||
|
||||
async fn get_copilot_lsp(http: Arc<dyn HttpClient>) -> anyhow::Result<PathBuf> {
|
||||
const SERVER_PATH: &str = "dist/agent.js";
|
||||
const SERVER_PATH: &str = "dist/language-server.js";
|
||||
|
||||
///Check for the latest copilot language server and download it if we haven't already
|
||||
async fn fetch_latest(http: Arc<dyn HttpClient>) -> anyhow::Result<PathBuf> {
|
||||
let release =
|
||||
latest_github_release("zed-industries/copilot", true, false, http.clone()).await?;
|
||||
get_release_by_tag_name("zed-industries/copilot", "v0.7.0", http.clone()).await?;
|
||||
|
||||
let version_dir = &paths::copilot_dir().join(format!("copilot-{}", release.tag_name));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue