Skip to content
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

100% CPU usage when navigating through a file with line annotations enabled #190

Open
Tadas opened this issue Aug 31, 2022 · 0 comments
Open
Labels

Comments

@Tadas
Copy link

Tadas commented Aug 31, 2022

Navigating a file by holding down or up arrows causes CPU usage to spike to 100%. When I let go of the key line annotations for skipped lines start appearing in random order. After it settles down, the annotation left showing is not for the line the cursor is on.

Shouldn't this debounce period be longer than 0? Bumping it up to 100 or so seems to have fixed it.

@debounce(0)
async onTextEditorSelectionChanged(
event: TextEditorSelectionChangeEvent
): Promise<void> {

@incidentist incidentist added the bug label Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants