Closed dev-drprasad closed 5 years ago
I have the same issue. I even forked WebPack plugin to use modified monaco editor without "monaco-languages" built-in. With that setup I do not get error but there's no syntax highlighting at all. No built-in, no textmate... :(
@ozonep I think we need to register custom languages first before wiring TMGrammers. Try:
monaco.languages.register({ id: "languageName" });
@ozonep @dev-drprasad did it work for you guys after calling monaco.languages.register
?
I was about to say the same thing tbh (haven't checked this myself though)
@NeekSandhu it worked for me.
According to document, i excluded languages from
MonacoEditorWebpackPlugin
. But looks like TMGrammers are not loaded for that languages and i am getting following errorCode
How i am changing language ?