You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently highlighting works pretty well, but one issue remains if we paste code into the repl it becomes noticeably laggy, I'm not sure whats the best way to deal with it
1 - we can de-bounce from highlighting calls, that is if the user input very fast(like pasting) write all the input without highlighting and then highlight when the input finishes
2 - Investigate how editors (exp: accepted) that use syntect do it, I'm only using the easy module, there is probably a more correct way to highlight text
The text was updated successfully, but these errors were encountered:
1- is actually possible see https://github.com/sigmaSd/IRust/tree/async_highlight but crossterm async story is not good for now, (its a busy loop that will consume a lot of the cpu), maybe revisit this after its reworked upstream, or figure how to handle it correctly with the current implementation
Currently highlighting works pretty well, but one issue remains if we paste code into the repl it becomes noticeably laggy, I'm not sure whats the best way to deal with it
1 - we can de-bounce from highlighting calls, that is if the user input very fast(like pasting) write all the input without highlighting and then highlight when the input finishes
2 - Investigate how editors (exp: accepted) that use syntect do it, I'm only using the easy module, there is probably a more correct way to highlight text
The text was updated successfully, but these errors were encountered: