Closed aboveyunhai closed 2 years ago
@luminaxster I tried to look through the source code but failed to understand how parsing works internally. I also check how codesandbox highlighter works https://github.com/codesandbox/codesandbox-client/blob/196301c919dd032dccc08cbeb48cf8722eadd36b/packages/app/src/app/components/CodeEditor/Monaco/workers/syntax-highlighter.js Just leave the link here in case if ppl can found the difference that covers the issue.
Thank you for letting me @aboveyunhai! It is a defect with the model change detection so it refreshes the highlighting, I'm looking into it and coming back with a fix shortly.
Coming back from vacation, looking into it tomorrow.
The highlight is correct at the first render, but after I start to type, the highlighter seems to lose its integrity.