New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check maxTokenizationLineLength in monarchLexer #145979
Check maxTokenizationLineLength in monarchLexer #145979
Conversation
Sorry for the delay, I've finally been signed off by my employer @alexdima |
9b97b2f
to
e85893c
Compare
Could I get reviews? This bug is freezing up the UIs and there's no workaround other than fixing it in the source. |
@alexdima could you run the CI again? I rebased on the main branch since there was a conflict. |
84c9752
to
856618f
Compare
Hi @hediet you seem to be assigned to the original bug report issue. Could you run the CI? This bug is making the UI unresponsive for 5+ seconds sometimes. |
It seems like the |
856618f
to
f260b7f
Compare
f260b7f
to
28f1195
Compare
Looks like the recently added |
28f1195
to
d1fcde7
Compare
@alexdima hello could you run the CI? |
this._maxTokenizationLineLength = this._configurationService.getValue<number>('editor.maxTokenizationLineLength', { | ||
overrideIdentifier: this._languageId | ||
}); | ||
this._configurationService.onDidChangeConfiguration(e => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this listener be disposed at some point?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point! I'll do a follow-up PR.
Thank you! |
This PR fixes microsoft/monaco-editor#3025
The issue is described in the issue linked above, but basically when
monaco-editor
was parsing and tokenizing lines, it was usingmonarch
tokenizer instead ofTextMate
tokenizer which was already checking themaxTokenizationLineLength
option. So I added themaxTokenizationLineLength
check inmonarch
tokenizer as well.