17 lines
415 B
Rust
17 lines
415 B
Rust
//! In-memory document information.
|
|
|
|
/// Information about a document that the Language Client
|
|
/// knows about.
|
|
/// Its lifetime is driven by the textDocument/didOpen and textDocument/didClose
|
|
/// client notifications.
|
|
#[derive(Debug, Clone)]
|
|
pub(crate) struct DocumentData {
|
|
pub(crate) version: i32,
|
|
}
|
|
|
|
impl DocumentData {
|
|
pub(crate) fn new(version: i32) -> Self {
|
|
DocumentData { version }
|
|
}
|
|
}
|