mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-07-19 02:35:00 +00:00
dev: borrow the document state inside of compiler (#33)
This commit is contained in:
parent
c7825c3174
commit
9d344570b4
6 changed files with 34 additions and 27 deletions
|
@ -3,6 +3,10 @@ pub mod analysis;
|
|||
|
||||
pub(crate) mod diagnostics;
|
||||
|
||||
use std::sync::Arc;
|
||||
|
||||
use typst_ts_core::TypstDocument;
|
||||
|
||||
pub use diagnostics::*;
|
||||
pub(crate) mod signature_help;
|
||||
pub use signature_help::*;
|
||||
|
@ -40,6 +44,12 @@ pub use lsp_typst_boundary::*;
|
|||
|
||||
mod prelude;
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct VersionedDocument {
|
||||
pub version: usize,
|
||||
pub document: Arc<TypstDocument>,
|
||||
}
|
||||
|
||||
mod polymorphic {
|
||||
use super::prelude::*;
|
||||
use super::*;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue