mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-07-24 13:13:43 +00:00
build: bump typst.ts to v0.5.0-rc7 (#554)
* dev: sync typ_server code * build: bump typst.ts to v0.5.0-rc7
This commit is contained in:
parent
b67cec2918
commit
fbd22d2601
39 changed files with 270 additions and 370 deletions
|
@ -56,12 +56,7 @@ insta.workspace = true
|
|||
serde.workspace = true
|
||||
serde_json.workspace = true
|
||||
typst-assets = { workspace = true, features = ["fonts"] }
|
||||
typst-ts-core = { workspace = true, default-features = false, features = [
|
||||
"flat-vector",
|
||||
"vector-bbox",
|
||||
"no-content-hint",
|
||||
] }
|
||||
typst-ts-compiler.workspace = true
|
||||
reflexo-typst.workspace = true
|
||||
sha2 = { version = "0.10" }
|
||||
hex = { version = "0.4" }
|
||||
|
||||
|
|
|
@ -196,8 +196,7 @@ impl BibWorker {
|
|||
mod tests {
|
||||
use std::path::Path;
|
||||
|
||||
use typst::syntax::VirtualPath;
|
||||
use typst_ts_core::TypstFileId;
|
||||
use typst::syntax::{FileId, VirtualPath};
|
||||
|
||||
#[test]
|
||||
fn yaml_bib_test() {
|
||||
|
@ -211,7 +210,7 @@ Euclid2:
|
|||
"#;
|
||||
let yaml = super::YamlBib::from_content(
|
||||
content,
|
||||
TypstFileId::new_fake(VirtualPath::new(Path::new("test.yml"))),
|
||||
FileId::new_fake(VirtualPath::new(Path::new("test.yml"))),
|
||||
);
|
||||
assert_eq!(yaml.entries.len(), 2);
|
||||
assert_eq!(yaml.entries[0].0, "Euclid");
|
||||
|
@ -228,7 +227,7 @@ Euclid3
|
|||
"#;
|
||||
super::YamlBib::from_content(
|
||||
content,
|
||||
TypstFileId::new_fake(VirtualPath::new(Path::new("test.yml"))),
|
||||
FileId::new_fake(VirtualPath::new(Path::new("test.yml"))),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -175,7 +175,7 @@ impl<'a, 'w> ReferencesWorker<'a, 'w> {
|
|||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use typst_ts_core::path::unix_slash;
|
||||
use reflexo::path::unix_slash;
|
||||
|
||||
use super::*;
|
||||
use crate::syntax::find_module_level_docs;
|
||||
|
|
|
@ -8,24 +8,20 @@ use std::{
|
|||
};
|
||||
|
||||
use once_cell::sync::Lazy;
|
||||
pub use serde::Serialize;
|
||||
use serde_json::{ser::PrettyFormatter, Serializer, Value};
|
||||
use typst::syntax::{
|
||||
ast::{self, AstNode},
|
||||
FileId as TypstFileId, LinkedNode, Source, SyntaxKind, VirtualPath,
|
||||
};
|
||||
use typst::{diag::PackageError, foundations::Bytes};
|
||||
use typst_ts_compiler::{
|
||||
use reflexo_typst::config::CompileOpts;
|
||||
use reflexo_typst::package::{PackageRegistry, PackageSpec};
|
||||
use reflexo_typst::world::{EntryOpts, EntryState};
|
||||
use reflexo_typst::{
|
||||
CompileDriver, EntryManager, EntryReader, ShadowApi, TypstSystemUniverse, WorldDeps,
|
||||
};
|
||||
use typst_ts_core::{
|
||||
config::compiler::{EntryOpts, EntryState},
|
||||
package::Registry,
|
||||
};
|
||||
use typst_ts_core::{config::CompileOpts, package::PackageSpec};
|
||||
use serde_json::{ser::PrettyFormatter, Serializer, Value};
|
||||
use typst::syntax::ast::{self, AstNode};
|
||||
use typst::syntax::{FileId as TypstFileId, LinkedNode, Source, SyntaxKind, VirtualPath};
|
||||
use typst::{diag::PackageError, foundations::Bytes};
|
||||
|
||||
pub use insta::assert_snapshot;
|
||||
pub use typst_ts_compiler::TypstSystemWorld;
|
||||
pub use reflexo_typst::TypstSystemWorld;
|
||||
pub use serde::Serialize;
|
||||
|
||||
use crate::{
|
||||
analysis::{Analysis, AnalysisResources},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue