-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
Scroll position should not change when returning to file #32397
Comments
Related to CodeLense? |
I just enabled |
I am seeing the same and it only happens with code lens enabled. I see it in |
Had this happen as well. Changing "typescript.referencesCodeLens.enabled" to false helped. The same/very similar problem occurs with the Git Lens extension (https://marketplace.visualstudio.com/items?itemName=eamodio.gitlens ) with "gitlens.codeLens.enabled": true. This one might be less pronounced. Probably because the extension adds fewer lines than TypeScript CodeLens. Windows 10, 64bit. VSCode 1.16.1, but I'm sure it was a problem before this version. |
I have noticed the same behavior: after switching a tab, and then back again the editor has scrolled away from its previous position. After setting "typescript.referencesCodeLens.enabled" to false this behavior disappeared. With referencesCodeLens enabled, just switching tabs and back again, loses the previous cursor position. Visual Code version 1.17.2, 64 bits, on Windows 10, TypeScript. This problem seems to have started for me possibly a month or two ago. |
dupe of #19917 |
Description
The scroll position moves down as references are retrieved. For large files, the position can be many lines away.
Steps to Reproduce:
typescript.referencesCodeLens.enabled
totrue
.The text was updated successfully, but these errors were encountered: