Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/apps/desktop/src/api/app_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ pub struct AppState {
pub ai_client_factory: Arc<AIClientFactory>,
pub tool_registry: Arc<Vec<Arc<dyn tools::framework::Tool>>>,
pub workspace_service: Arc<workspace::WorkspaceService>,
pub workspace_identity_watch_service: Arc<workspace::WorkspaceIdentityWatchService>,
pub workspace_path: Arc<RwLock<Option<std::path::PathBuf>>>,
pub config_service: Arc<config::ConfigService>,
pub filesystem_service: Arc<filesystem::FileSystemService>,
Expand Down Expand Up @@ -65,6 +66,8 @@ impl AppState {
};

let workspace_service = Arc::new(workspace::WorkspaceService::new().await?);
let workspace_identity_watch_service =
Arc::new(workspace::WorkspaceIdentityWatchService::new(workspace_service.clone()));
workspace::set_global_workspace_service(workspace_service.clone());
let filesystem_service = Arc::new(filesystem::FileSystemServiceFactory::create_default());

Expand Down Expand Up @@ -138,6 +141,7 @@ impl AppState {
ai_client_factory,
tool_registry,
workspace_service,
workspace_identity_watch_service,
workspace_path: Arc::new(RwLock::new(initial_workspace_path)),
config_service,
filesystem_service,
Expand Down
Loading
Loading