Issue
When a null grammar is set after previously setting a grammar with line highlights, some lines remain tokenized.
Resolution
To fix this, we now emit a ModelTokensChangedEvent to notify the IModelTokensChangedListener that the state for all lines has changed. This ensures that all lines are properly updated.
Changes
Emitted ModelTokensChangedEvent after setting a null grammar.
Fixes #68
Issue When a null grammar is set after previously setting a grammar with line highlights, some lines remain tokenized.
Resolution To fix this, we now emit a
ModelTokensChangedEvent
to notify theIModelTokensChangedListener
that the state for all lines has changed. This ensures that all lines are properly updated.Changes
ModelTokensChangedEvent
after setting a null grammar.