carlthome / vscode-git-line-blame

Display inline information of the last commit that edited the currently selected line in the editor
https://marketplace.visualstudio.com/items?itemName=carlthome.git-line-blame
GNU Affero General Public License v3.0
20 stars 4 forks source link

Throttle showDecoration #66

Closed msvbg closed 2 months ago

msvbg commented 2 months ago

When moving the cursor up and down lines quickly, this extension executes git a lot of times and the line blame can't keep up. This adds a small 100ms throttle ensuring that git doesn't get called more than ten times per second. It should still be just as responsive for normal cursor movements.