emacs-vs / codemetrics

Plugin shows complexity information
GNU General Public License v3.0
66 stars 7 forks source link

Sometimes all overlays are collected in one place #3

Open Artawower opened 1 year ago

Artawower commented 1 year ago

Unfortunately I didn't manage to find action that can lead to such result image

jcs090218 commented 1 year ago

Interesting... can you try to provide the step to reproduce this? Check your configuration. Maybe other plugins are conflicting with this package.

Artawower commented 1 year ago

I think I've found the culprit, this happens when I change branch and the buffer gets synced with the new file

jcs090218 commented 1 year ago

Sorry for the late reply. Is there something I can change to avoid this? Maybe a hook I can add to refresh overlays. 🤔

Artawower commented 1 year ago

It would be nice, perhaps, to make a function to redraw overlays? In this case, I can use the advice for the revert-buffer function. Or maybe integrate this advice directly into codemetrics-mode (if the problem is relevant to other people)

jcs090218 commented 1 year ago

Got it! Thanks for the information! I need to investigate a bit more in order to make the correct decision! 🤔