tinymist-query 0.14.20-rc1

Language queries for tinymist.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

/// path: resolve.typ
#let resolve(join, root, dir, name) = {
  let asset-dir = "assets"
  if sys.inputs.x-path-input-uri.ends-with(".png") {
    return (
      file: join(root, "images", sys.inputs.x-path-input-name),
      on-conflict: ```typc
      import "/resolve.typ": on-conflict; on-conflict(join, root, dir, name)
      ```.text,
    )
  }

  join(root, "assets", name)
};
-----
/// path: x_at_root.typ