Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
GitLens line info causes horizontal scroll in editor #290
Just filed an issue with VSCode and want you to be aware as well: Microsoft/vscode#43940
Please read the full report there. In summary, I think that causing unwanted horizontal scroll is something that VSCode should prevent extensions from doing. I want to make GitLens aware of this issue, in case you disagree with my assessment or have additional thoughts. I want to see GitLens succeed, and if the community decides that this detail is actually a feature and not a bug I will respect that, but for me personally it is a flaw that causes more trouble than GitLens is worth.
referenced this issue
Feb 18, 2018
@eamodio This only appears to be an issue when the Current Line Blame line is longer than current width of the active editor tab.
Some possible solutions here (besides disabling Current Line Blame) would require modifying how "current line blame" is presented
@fabbballin Thanks for thinking more about this.
Unfortunately I don't know of any way to know the width of the editor/tab. VSCode doesn't provide access to that info, and trying to glean it from line lengths would be prohibitively expensive (especially for large files)
This is possible today, just not exposed through the interactive settings editor (yet -- thinking about it though). See the
This is an interesting idea, and I think it is possible with the api vscode provides (though I know I can't mix text and images -- has to be one or the other). I'll have to look into it more.
Another option which I really like is to provide the hovers over the line numbers (in the gutter), but unfortunately vscode doesn't currently support it. If you think it would be valuable, please up vote this Microsoft/vscode#28080
added a commit
Mar 24, 2018
You can actually get their personal settings with this api https://code.visualstudio.com/docs/extensionAPI/vscode-api through the