Skip to content

TreeSitterLanguageAssets

TreeSitterLanguageAssets = object

readonly optional extraWasmUrls?: Readonly<Record<string, string>>

Grammars the language’s native support loads besides wasmUrl. Markdown names resolver (tree-sitter-md.wasm) and math (tree-sitter-markdown-math.wasm); MDX, which parses its prose with the same support, also names markdown. They come from the language’s plugin so an app that never highlights Markdown never bundles them.


readonly optional foldQuerySource?: string


readonly optional highlightQuerySource?: string


readonly optional injectionQuerySource?: string


readonly optional mergeUnitQuerySource?: string


readonly wasmUrl: string