Skip to content

Reduce re-rendering by disabling animation in blame info in the status bar #1829

@gdh1995

Description

@gdh1995

Currently behavior

  1. Currently Gitlens shows blame information in the status bar (controlled by gitlens.statusBar.*)
  2. When I move caret to another line, it will update the blame information
  3. When gitlens.statusBar.reduceFlicker is true by default, there's a "turning circle" before blame info before new info gets loaded

What I want

I want (a new setting item) to replace the circle animation with:

  • either a "static icon" which means "updating"
  • or keep the icon unchanged, and switch to another icon on further errors or timeout events

The benefits of this feature

Firstly, this means: further reduce flickers; easier to read; not attract attention in any sense.

Secondly, a static icon will save computer power a lot: during my tests using Developer Tools -> Render -> Paint flashing,

  1. with the turning circle, moveing caret causes to render many UI parts
    1. if a VS Code window is small, then many left icons flash
      with-turning-circle
    1. if a window is large, then there're a strange full-area rendering, like:
      large-window-with-turning-circle
  1. when reduceFlicker=false, there's no turning circle, and then
    without-circle

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions