Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Merge remote-tracking branch 'origin/main' into assistant-2

Antonio Scandurra0dae8f2dd804
diff --cc Cargo.lock
index 4723c0748b8,6dbfa27309c..807ed777b2c
--- a/Cargo.lock
+++ b/Cargo.lock
@@@ -100,11 -100,8 +100,10 @@@ name = "ai
version = "0.1.0"
dependencies = [
"anyhow",
- "assets",
+ "chrono",
"collections",
"editor",
+ "fs",
"futures 0.3.28",
"gpui",
"isahc",
diff --cc crates/ai/Cargo.toml
index e36df880d98,b6c75537573..9d67cbd108e
--- a/crates/ai/Cargo.toml
+++ b/crates/ai/Cargo.toml
@@@ -9,27 -9,17 +9,26 @@@ path = "src/ai.rs
doctest = false
[dependencies]
- assets = { path = "../assets"}
collections = { path = "../collections"}
editor = { path = "../editor" }
+fs = { path = "../fs" }
gpui = { path = "../gpui" }
+language = { path = "../language" }
+menu = { path = "../menu" }
+search = { path = "../search" }
+settings = { path = "../settings" }
+theme = { path = "../theme" }
util = { path = "../util" }
+workspace = { path = "../workspace" }
-rust-embed.workspace = true
-serde.workspace = true
-serde_json.workspace = true
anyhow.workspace = true
+chrono = "0.4"
futures.workspace = true
isahc.workspace = true
+schemars.workspace = true
+serde.workspace = true
+serde_json.workspace = true
+tiktoken-rs = "0.4"
[dev-dependencies]
editor = { path = "../editor", features = ["test-support"] }
diff --cc crates/zed/src/zed.rs
index c71d9e6fd19,a7bd820350d..f58ea69b936
--- a/crates/zed/src/zed.rs
+++ b/crates/zed/src/zed.rs
@@@ -2,7 -3,7 +3,8 @@@ pub mod languages
pub mod menus;
#[cfg(any(test, feature = "test-support"))]
pub mod test;
+
+use ai::AssistantPanel;
use anyhow::Context;
use assets::Assets;
use breadcrumbs::Breadcrumbs;