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

Show decoration correctly on format-on-save #29

Closed dereli closed 8 months ago

dereli commented 8 months ago

Fixes #17

carlthome commented 8 months ago

Wonderful! Thanks! :tada:

Just for my understanding, is it the listening to this additional event that was the fix?

https://github.com/carlthome/vscode-git-line-blame/pull/29/files#diff-04bba6a35cad1c794cbbe677678a51de13441b7a6ee8592b7b50be1f05c6f626R84

dereli commented 8 months ago

Just for my understanding, is it the listening to this additional event that was the fix?

Exactly; I think the exact selection/cursor position doesn't change, but reformatting triggers ranges change.