Sertion / vscode-gitblame

Visual Studio Code Extension - See Git Blame info in status bar.
https://marketplace.visualstudio.com/items/waderyan.gitblame
MIT License
72 stars 31 forks source link

Nothing shown in status bar if commit message line length is too long #60

Closed TomServo3000 closed 4 years ago

TomServo3000 commented 4 years ago

If a commit message line length is too long to display in its entirety, nothing will be displayed at all in the status bar. It would be much better to concatenate the message if possible.

Sertion commented 4 years ago

Hey thomaspugliese!

Are you using commit.summary in the gitblame.statusBarMessageFormat config option and this makes the status bar element disappear?

If this is the case there is not much I can do as vscode hides all status bar items that it can no longer fit in the status bar. I could add a parameter for commit.summary where you could configure the cutoff point yourself (a basic substring) but the vscode extension API does not allow me to measure if a text will fit or not.

TomServo3000 commented 4 years ago

Are you using commit.summary in the gitblame.statusBarMessageFormat config option and this makes the status bar element disappear?

Yes.

vscode hides all status bar items that it can no longer fit in the status bar.

That sounds like the actual bug then.

Sertion commented 4 years ago

As of now there is nothing I can do here. It is being tracked in vscode#6651.