1 //! In-memory document information.
3 /// Information about a document that the Language Client
5 // Its lifetime is driven by the textDocument/didOpen and textDocument/didClose
6 // client notifications.
7 #[derive(Debug, Clone)]
8 pub(crate) struct DocumentData {
9 pub version: Option<i64>,
13 pub fn new(version: i64) -> Self {
14 DocumentData { version: Some(version) }