Skip to content

HighlightingServiceOptions

HighlightingServiceOptions = object

readonly optional maxTokenizationLineLength?: () => number

Read on every Shiki document open and snippet; documents pick up a change on their next request.

number


readonly optional preloadLanguages?: () => readonly HighlightingLanguage[] | null

Languages to prepare after first paint; null prepares Editor’s default grammar set.

readonly HighlightingLanguage[] | null


readonly optional resolveTheme?: (id) => Promise<VscodeThemeRegistration>

Loads an imported theme by the id a vscode selection names.

string

Promise<VscodeThemeRegistration>


readonly optional shikiWorker?: () => Worker

Worker


readonly optional treeSitterWorker?: () => Worker

Worker