CodeEditApp / CodeEditSourceEditor

A code editor view written in Swift powered by tree-sitter.
https://codeeditapp.github.io/CodeEditSourceEditor/documentation/codeeditsourceeditor
MIT License
517 stars 84 forks source link

🐞 Highlighting takes a while #21

Closed 0xWDG closed 2 years ago

0xWDG commented 2 years ago

Highlighting

After opening a file highlighting doesn't start

Screenshot 2022-06-11 at 15 43 40

After pressing enter (last line) it starts highlighting

Screenshot 2022-06-11 at 15 43 17
lukepistrol commented 2 years ago

This just happens when opening a *.swift file right?

You might want to try to run it in Release configuration which should dramatically improve performance.

austincondiff commented 2 years ago

We might need to show "Loading X language features" this in the CodeEdit activity bar while this completes. We'd need to somehow pull that state out of this view.

lukepistrol commented 2 years ago

@thecoolwinter is this fixed with #59 ?

thecoolwinter commented 2 years ago

Yes, closed with incremental highlighting #59. CodeEdit will now only try to highlight the visible text which greatly improves the initial highlight time