17 lines
438 B
Rust
Raw Normal View History

//! In-memory document information.
/// Information about a document that the Language Client
2020-07-24 17:55:17 -04:00
/// knows about.
/// Its lifetime is driven by the textDocument/didOpen and textDocument/didClose
/// client notifications.
#[derive(Debug, Clone)]
pub(crate) struct DocumentData {
2020-11-02 16:31:38 +01:00
pub(crate) version: Option<i64>,
}
impl DocumentData {
2020-11-02 16:31:38 +01:00
pub(crate) fn new(version: i64) -> Self {
DocumentData { version: Some(version) }
}
}