From 5b0ce67327513ef25581f813d2ae3d394bf9abc8 Mon Sep 17 00:00:00 2001 From: Myriad-Dreamin <35292584+Myriad-Dreamin@users.noreply.github.com> Date: Sun, 3 Aug 2025 10:44:42 +0800 Subject: [PATCH] fix: don't check filter when group is std (#1972) --- crates/tinymist-analysis/src/upstream/mod.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/crates/tinymist-analysis/src/upstream/mod.rs b/crates/tinymist-analysis/src/upstream/mod.rs index 311ffaf80..3f5997a62 100644 --- a/crates/tinymist-analysis/src/upstream/mod.rs +++ b/crates/tinymist-analysis/src/upstream/mod.rs @@ -109,7 +109,7 @@ impl GroupData { static GROUPS: LazyLock> = LazyLock::new(|| { let mut groups: Vec = yaml::from_str(include_str!("groups.yml")).unwrap(); for group in &mut groups { - if group.filter.is_empty() { + if group.filter.is_empty() && group.name != "std" { group.filter = group .module() .scope() @@ -323,11 +323,13 @@ static ROUTE_MAPS: LazyLock> = LazyLock::new(|| { let route = format_route(parent_name.as_deref(), &name, &cat); - // Some types are defined multiple times, and the first one should take precedence. + // Some types are defined multiple times, and the first one should take + // precedence. // - // For example, typst 0.13.0 renamed `pattern` to `tiling`, but keep `pattern` remains as a deprecated alias. - // Therefore, `Tiling` is first defined as `tiling`, then defined as `pattern` with deprecation again. - // https://typst.app/docs/changelog/0.13.0/#visualization + // For example, typst 0.13.0 renamed `pattern` to `tiling`, but keep + // `pattern` remains as a deprecated alias. + // Therefore, `Tiling` is first defined as `tiling`, then defined as + // `pattern` with deprecation again. https://typst.app/docs/changelog/0.13.0/#visualization // https://github.com/typst/typst/blob/9a6268050fb769e18c4889fa5f59d4150e8878d6/crates/typst-library/src/visualize/mod.rs#L34 // https://github.com/typst/typst/blob/9a6268050fb769e18c4889fa5f59d4150e8878d6/crates/typst-library/src/visualize/mod.rs#L47-L49 map.entry(CatKey::Type(*t)).or_insert(route);