mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-11-23 20:56:42 +00:00
dev: cache expression information correctly (#736)
* dev: cache expression information correctly * rev
This commit is contained in:
parent
2c38695b6f
commit
1d49e110e2
18 changed files with 430 additions and 187 deletions
|
|
@ -61,7 +61,7 @@ pub fn run_with_ctx<T>(
|
|||
.map(|p| TypstFileId::new(None, VirtualPath::new(p.strip_prefix(&root).unwrap())))
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
let mut ctx = Arc::new(Analysis::default()).snapshot(root, w.snapshot(), &());
|
||||
let mut ctx = Arc::new(Analysis::default()).snapshot(w.snapshot(), &());
|
||||
ctx.test_completion_files(Vec::new);
|
||||
ctx.test_files(|| paths);
|
||||
f(&mut ctx, p)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue