Add copilot crate

Refactor HTTP and github release downloading into util
Lazily download / upgrade the copilot LSP from Zed

Co-authored-by: Max <max@zed.dev>
Co-Authored-By: Antonio <antonio@zed.dev>
This commit is contained in:
Mikayla Maki
2023-03-28 09:41:59 -07:00
co-authored by Max Antonio
parent 35b2aceffb
commit 455cdc8b37
41 changed files with 435 additions and 265 deletions
Generated
+21 -1
View File
@@ -1113,7 +1113,6 @@ dependencies = [
"futures 0.3.25",
"gpui",
"image",
"isahc",
"lazy_static",
"log",
"parking_lot 0.11.2",
@@ -1332,6 +1331,22 @@ dependencies = [
"theme",
]
[[package]]
name = "copilot"
version = "0.1.0"
dependencies = [
"anyhow",
"async-compression",
"client",
"futures 0.3.25",
"gpui",
"lsp",
"settings",
"smol",
"util",
"workspace",
]
[[package]]
name = "core-foundation"
version = "0.9.3"
@@ -7500,11 +7515,15 @@ dependencies = [
"dirs 3.0.2",
"futures 0.3.25",
"git2",
"isahc",
"lazy_static",
"log",
"rand 0.8.5",
"serde",
"serde_json",
"smol",
"tempdir",
"url",
]
[[package]]
@@ -8460,6 +8479,7 @@ dependencies = [
"collections",
"command_palette",
"context_menu",
"copilot",
"ctor",
"db",
"diagnostics",