You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Describe the bug
I have this shiki setup:
import{shikiToMonaco}from'@shikijs/monaco';import{bundledLanguagesInfo,createHighlighter}from'shiki';exportasyncfunctionregisterShiki(monaco: typeofMonaco){consthighlighter=awaitcreateHighlighter({themes: ['github-dark-default'],langs: bundledLanguagesInfo.map(lang=>lang.id)// This isn't very performant, but shouldn't all of these work?});constlanguagesAlreadyInMonaco=monaco.languages.getLanguages();for(constlanguageofbundledLanguagesInfo.filter((language)=>!languagesAlreadyInMonaco.some((l)=>l.id===language.id))){monaco.languages.register({id: language.id});}shikiToMonaco(highlighter,monaco);}
If i github-dark-default as a theme i get the following error in my console:
It works fine if i set github-dark as my theme. What am i doing wrong here?
Reproduction
look at code example
Contributes
I am willing to submit a PR to fix this issue
I am willing to submit a PR with failing tests
The text was updated successfully, but these errors were encountered:
Validations
Describe the bug
I have this shiki setup:
If i
github-dark-default
as a theme i get the following error in my console:It works fine if i set
github-dark
as my theme. What am i doing wrong here?Reproduction
look at code example
Contributes
The text was updated successfully, but these errors were encountered: