Mountain/ApplicationState/State/WorkspaceState/mod.rs
1//! # WorkspaceState Module (ApplicationState)
2//!
3//! ## RESPONSIBILITIES
4//! Manages workspace-related state including workspace folders, workspace
5//! trust status, and the currently active document.
6//!
7//! ## ARCHITECTURAL ROLE
8//! WorkspaceState is part of the **state organization layer**, representing
9//! all workspace-specific state in the application.
10//!
11//! ## KEY COMPONENTS
12//! - State: Main struct containing workspace-related fields
13//!
14//! ## ERROR HANDLING
15//! Uses `Arc<Mutex<...>>` for thread-safe access with proper error handling.
16//!
17//! ## LOGGING
18//! State changes are logged at appropriate levels.
19//!
20//! ## PERFORMANCE CONSIDERATIONS
21//! - Lock mutexes briefly
22//! - Avoid nested locks
23//! - Use Arc for shared ownership
24//!
25//! ## TODO
26//! - [ ] Add workspace validation
27//! - [ ] Implement workspace change events
28//! - [ ] Add workspace metrics
29
30pub mod WorkspaceState;
31
32pub use WorkspaceState::*;