The highlighter does not correctly invalidate text that has been inserted in a new file. This due to the highlighter not invalidating ranges that are not visible. However it should be able to invalidate all ranges that have been invalidated by tree-sitter, and only re-highlight any visible ranges.
To Reproduce
Make a new file.
Do some editing
Cause an edit that would invalidate a large range of text. Notice that it (likely) does not invalidate some portion of the text near the end of the code.
Expected Behavior
Any visible text should be able to be invalidated.
Description
The highlighter does not correctly invalidate text that has been inserted in a new file. This due to the highlighter not invalidating ranges that are not visible. However it should be able to invalidate all ranges that have been invalidated by tree-sitter, and only re-highlight any visible ranges.
To Reproduce
Expected Behavior
Any visible text should be able to be invalidated.
Version Information
CodeEditSourceEditor: 0.7.0 macOS: 14.3.1 Xcode: 15.2
Additional Context
No response
Screenshots
https://github.com/CodeEditApp/CodeEditSourceEditor/assets/35942988/b517aa66-7c03-47f4-90e6-8b68d18b5f2e