mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-11-23 12:46:43 +00:00
feat: track fine-grained revisions of font, registry, entry, and vfs (#1192)
* feat: set flag to indicate whether we are compiling files g1 dev: stateless compile dev: vfs revise apis g1 feat: bump revision on state changes feat: track font and package changes dev: some cases that can change state of cache changes * feat: implement shared source cache * fix: take db state * dev: update take state location * fix: example
This commit is contained in:
parent
8481b77e3c
commit
1f01ec1f6c
24 changed files with 841 additions and 484 deletions
|
|
@ -25,7 +25,7 @@ pub(crate) fn convert_docs(ctx: &SharedContext, content: &str) -> StrResult<EcoS
|
|||
});
|
||||
w.map_shadow_by_id(w.main(), Bytes::from(content.as_bytes().to_owned()))?;
|
||||
// todo: bad performance
|
||||
w.source_db.take_state();
|
||||
w.take_db();
|
||||
|
||||
let conv = typlite::Typlite::new(Arc::new(w))
|
||||
.with_library(DOCS_LIB.clone())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue