Parse version from GitHub tag name instead of release name (#7423)
If we not change this, some release will parse error. https://docs.github.com/en/rest/releases/releases?apiVersion=2022-11-28 ```json { "name": { "type": [ "string", "null" ] } } ``` <img width="1188" alt="image" src="https://github.com/zed-industries/zed/assets/5518/bd53dbc4-ae2c-4f19-afd7-58e70b4f87d8"> --------- Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
This commit is contained in:
parent
bde509fa74
commit
e7fcddff69
13 changed files with 23 additions and 27 deletions
|
@ -979,7 +979,7 @@ async fn get_copilot_lsp(http: Arc<dyn HttpClient>) -> anyhow::Result<PathBuf> {
|
|||
let release =
|
||||
latest_github_release("zed-industries/copilot", true, false, http.clone()).await?;
|
||||
|
||||
let version_dir = &*paths::COPILOT_DIR.join(format!("copilot-{}", release.name));
|
||||
let version_dir = &*paths::COPILOT_DIR.join(format!("copilot-{}", release.tag_name));
|
||||
|
||||
fs::create_dir_all(version_dir).await?;
|
||||
let server_path = version_dir.join(SERVER_PATH);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue