New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GitLens line info causes horizontal scroll in editor #290
Comments
I'm going to close this, because as far as I can tell there isn't anything GitLens can do to change this behavior (other than turning off the current line annotation). See microsoft/vscode#43940 (comment) for more details. |
@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 Some idea's:
Thoughts? |
@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 |
You can actually get their personal settings with this api https://code.visualstudio.com/docs/extensionAPI/vscode-api through the |
@skbolton This issue is fixed if you use set the |
@eamodio If you disable |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
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.
The text was updated successfully, but these errors were encountered: