vscode-hg icon indicating copy to clipboard operation
vscode-hg copied to clipboard

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

Open Tadas opened this issue 2 years ago • 0 comments

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. https://github.com/mrcrowl/vscode-hg/blob/8661ee183e6d2aea9f6c8a53f5171c86644d50ea/src/annotations.ts#L152-L155

Tadas avatar Aug 31 '22 21:08 Tadas