Skip to content

TreeSitterSyntaxProviderOptions

TreeSitterSyntaxProviderOptions = object

readonly optional warmLanguages?: () => readonly TreeSitterLanguageId[]

Languages to compile ahead of their first document, read each time a document’s first parse answers, so the host’s set can change (a workspace switch) and paint is never delayed. Each is compiled once with its injection closure; unknown ids and load failures are skipped.

readonly TreeSitterLanguageId[]


readonly optional workerOwner?: TreeSitterWorkerOwner