feat: add package related arguments to typstExtraArgs (#833)

This commit is contained in:
Myriad-Dreamin 2024-11-16 17:16:56 +08:00 committed by GitHub
parent d2afe78fee
commit 8e36f25cf2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 76 additions and 20 deletions

View file

@ -124,6 +124,7 @@ pub fn run_with_sources<T>(source: &str, f: impl FnOnce(&mut LspUniverse, PathBu
};
let mut world = LspUniverseBuilder::build(
EntryState::new_rooted(root.as_path().into(), None),
Default::default(),
Arc::new(
LspUniverseBuilder::resolve_fonts(CompileFontArgs {
ignore_system_fonts: true,
@ -131,8 +132,7 @@ pub fn run_with_sources<T>(source: &str, f: impl FnOnce(&mut LspUniverse, PathBu
})
.unwrap(),
),
Default::default(),
None,
LspUniverseBuilder::resolve_package(None, None),
)
.unwrap();
let sources = source.split("-----");