pub type LspCompileSnapshot = CompileSnapshot<LspCompilerFeat>;
Expand description
LSP compile snapshot.
Aliased Type§
struct LspCompileSnapshot {
pub id: ProjectInsId,
pub signal: ExportSignal,
pub world: CompilerWorld<LspCompilerFeat>,
pub success_doc: Option<TypstDocument>,
}
Fields§
§id: ProjectInsId
The project id.
signal: ExportSignal
The export signal for the document.
world: CompilerWorld<LspCompilerFeat>
Using world
success_doc: Option<TypstDocument>
The last successfully compiled document.
Implementations
§impl<F> CompileSnapshot<F>where
F: CompilerFeat + 'static,
impl<F> CompileSnapshot<F>where
F: CompilerFeat + 'static,
pub fn from_world(world: CompilerWorld<F>) -> CompileSnapshot<F>
pub fn from_world(world: CompilerWorld<F>) -> CompileSnapshot<F>
Creates a snapshot from the world.
pub fn task(self, inputs: TaskInputs) -> CompileSnapshot<F>
pub fn task(self, inputs: TaskInputs) -> CompileSnapshot<F>
Forks a new snapshot that compiles a different document.
Note: the resulting document should not be shared in system, because we generally believe that the document is revisioned, but temporary tasks break this assumption.
Trait Implementations
§impl<F> Clone for CompileSnapshot<F>where
F: CompilerFeat,
impl<F> Clone for CompileSnapshot<F>where
F: CompilerFeat,
§fn clone(&self) -> CompileSnapshot<F>
fn clone(&self) -> CompileSnapshot<F>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more