Cargo.lock 🔗
@@ -5305,6 +5305,7 @@ dependencies = [
"client",
"cloud_llm_client",
"collections",
+ "db",
"debug_adapter_extension",
"dirs 4.0.0",
"edit_prediction",
Oleksiy Syvokon created
Follow up to #51809
Without it, ep_cli panics when initializing headless Zed.
Release Notes:
- N/A
Cargo.lock | 1 +
crates/edit_prediction_cli/Cargo.toml | 1 +
crates/edit_prediction_cli/src/headless.rs | 4 ++++
3 files changed, 6 insertions(+)
@@ -5305,6 +5305,7 @@ dependencies = [
"client",
"cloud_llm_client",
"collections",
+ "db",
"debug_adapter_extension",
"dirs 4.0.0",
"edit_prediction",
@@ -21,6 +21,7 @@ clap = "4"
client.workspace = true
cloud_llm_client.workspace= true
collections.workspace = true
+db.workspace = true
debug_adapter_extension.workspace = true
dirs.workspace = true
extension.workspace = true
@@ -1,4 +1,5 @@
use client::{Client, ProxySettings, UserStore};
+use db::AppDatabase;
use extension::ExtensionHostProxy;
use fs::RealFs;
use gpui::http_client::read_proxy_from_env;
@@ -61,6 +62,9 @@ pub fn init(cx: &mut App) -> EpAppState {
let client = Client::production(cx);
cx.set_http_client(client.http_client());
+ let app_db = AppDatabase::new();
+ cx.set_global(app_db);
+
let git_binary_path = None;
let fs = Arc::new(RealFs::new(
git_binary_path,