Skip to content
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

Delayed Loading on File Focus causing scroll position and readability issues #315

Closed
Tiedye opened this issue Mar 13, 2018 · 2 comments
Closed
Labels
blocked: vscode Caused by or dependent on a VS Code issue or feature

Comments

@Tiedye
Copy link

Tiedye commented Mar 13, 2018

When switching views from one file to another, it takes a moment for code lenses to load causing a jarring addition of those lines a moment later, which also has the effect of changing the scroll position of the window.

It would be preferable if those lenses were not unloaded when the window is navigated away from so my place is kept in large files and my eyes do have to find what I'm looking at twice each time I open an editor.

Another solution would be to simply reserve the space for those lenses so when they load they do not move the code.

  • GitLens Version: 8.1
  • VSCode Version: 1.21.0
  • OS Version: Ubuntu 16.04 LTS

Steps to Reproduce:

  1. Open two or more versioned files in multiple tabs
  2. Switch between those tabs
@eamodio
Copy link
Member

eamodio commented Mar 14, 2018

Unfortunately GitLens (or any extension) cannot control that behavior, that is the way code lens works in vscode. They always discard them and refresh them on tab switch. I talk a bit more about it here: #245 (comment)

Although there are some bugs associated with code lens currently that makes the situation much worse: see microsoft/vscode#41968

EDIT: Here are other similar issues too #179, #137

@github-actions
Copy link

github-actions bot commented Dec 6, 2020

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
blocked: vscode Caused by or dependent on a VS Code issue or feature
Projects
None yet
Development

No branches or pull requests

2 participants