danipen / TextMateSharp

A port of tm4e to bring TextMate grammars to dotnet ecosystem
MIT License
101 stars 19 forks source link

Emit a ModelTokensChangedEvent for all the lines when setting a null grammar #69

Closed danipen closed 2 months ago

danipen commented 2 months ago

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 the IModelTokensChangedListener that the state for all lines has changed. This ensures that all lines are properly updated.

Changes