-
-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Janky behaviour while typing #673
Comments
Thanks for reporting here. I think at least with the bracket highlighting we may need to play with the debounce timing. Currently it's set pretty low (not human noticeable), but there is a short delay. See here: calva/src/highlight/src/extension.ts Line 214 in 133ad6c
I'm not sure about the require coloring without digging in though. But hopefully we can find some way to smooth all of this out like you say. |
Debounce might help, but I think the bracket matching highlight going on looks wrong. Calva only highlights brackets when the cursor is outside. In the OP gif it seems that some highlighting is going on from the inside... |
So... this would happen if the highlighting was applied on the old text, with the new cursor position, right? |
I posted this in Slack and want to preserve here so that it doesn't get lost:
There's two issues here:
require
starts off as blue then quickly turns red.I have confirmed that native VSCode (with Calva disabled) doesn't exhibit any of the behaviours, but of course you get VSCode's bracket matching which is weird.
The machine this runs on is from 2014 so VSCode is a bit sluggish anyway, but I think at least the bracket highlighting could be after a short delay to make sure typing stabilises.
The text was updated successfully, but these errors were encountered: