diff options
| author | Igor Khanin <igor@khanin.biz> | 2025-05-28 16:41:35 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-28 13:41:35 +0000 |
| commit | 9ac21b8524632c70ab9e090488a70085eabe4189 (patch) | |
| tree | e6dc6c3efe3a49141344633faea40d9a4e052b4b /crates/typst-ide/src/tooltip.rs | |
| parent | 9bbfa5ae0593333b1f0afffd71fec198d61742a6 (diff) | |
Fix tracing of most field call expressions (#6234)
Diffstat (limited to 'crates/typst-ide/src/tooltip.rs')
| -rw-r--r-- | crates/typst-ide/src/tooltip.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crates/typst-ide/src/tooltip.rs b/crates/typst-ide/src/tooltip.rs index e5e4cc19..528f679c 100644 --- a/crates/typst-ide/src/tooltip.rs +++ b/crates/typst-ide/src/tooltip.rs @@ -371,4 +371,11 @@ mod tests { test(&world, -2, Side::Before).must_be_none(); test(&world, -2, Side::After).must_be_text("This star imports `a`, `b`, and `c`"); } + + #[test] + fn test_tooltip_field_call() { + let world = TestWorld::new("#import \"other.typ\"\n#other.f()") + .with_source("other.typ", "#let f = (x) => 1"); + test(&world, -4, Side::After).must_be_code("(..) => .."); + } } |
