summaryrefslogtreecommitdiff
path: root/crates/typst-ide/src/analyze.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/typst-ide/src/analyze.rs')
-rw-r--r--crates/typst-ide/src/analyze.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/crates/typst-ide/src/analyze.rs b/crates/typst-ide/src/analyze.rs
index 1fef1b49..9d67b322 100644
--- a/crates/typst-ide/src/analyze.rs
+++ b/crates/typst-ide/src/analyze.rs
@@ -67,8 +67,12 @@ pub fn analyze_import(world: &dyn World, source: &LinkedNode) -> Option<Value> {
};
let context = Context::none();
- let mut vm =
- Vm::new(engine, &context, Scopes::new(Some(world.library())), Span::detached());
+ let mut vm = Vm::new(
+ engine,
+ context.track(),
+ Scopes::new(Some(world.library())),
+ Span::detached(),
+ );
typst::eval::import(&mut vm, source, Span::detached(), true)
.ok()
.map(Value::Module)