1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//! Clangd Session Management Module
//!
//! This module provides clean session management for clangd processes with LSP clients.
//! It uses lsp components directly for process management, transport, and LSP communication.
//!
//! # Architecture
//!
//! - **ClangdSession**: Manages lifecycle of clangd process + LSP client
//! - **ClangdConfig**: Configuration with builder pattern and validation
//! - **Error Types**: Comprehensive error handling with context preservation
//!
//! # Usage
//!
//! ```rust
//! use clangd::{ClangdSession, ClangdConfigBuilder};
//!
//! // Build configuration
//! let config = ClangdConfigBuilder::new()
//! .working_directory("/path/to/project")
//! .build_directory("/path/to/build")
//! .build()?;
//!
//! // Create session
//! let session = ClangdSession::new(config).await?;
//!
//! // Use LSP client
//! let client = session.client();
//! // Make LSP requests...
//!
//! // Clean shutdown
//! session.close().await?;
//! ```
pub use crateClangdConfigBuilder;
pub use crateClangdSession;
pub use crateClangdSessionBuilder;