deps_lsp/document/mod.rs
1//! Document management module.
2//!
3//! This module provides infrastructure for managing LSP documents:
4//! - `state`: Document and server state management
5//! - `lifecycle`: Document open/change event handling
6//! - `loader`: Disk-based document loading for cold start support
7
8mod lifecycle;
9mod loader;
10#[cfg(test)]
11mod osv_snapshot_tests;
12pub(crate) mod reparse;
13mod state;
14
15// Re-export all public items from submodules
16pub(crate) use lifecycle::RefetchPolicy;
17pub use lifecycle::{ensure_document_loaded, handle_document_change, handle_document_open};
18pub use loader::load_document_from_disk;
19pub(crate) use state::CLIENT_REFRESH_TIMEOUT;
20pub use state::{ColdStartLimiter, DocumentState, LoadingState, ServerState};