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
Preserve view state when switching tabs on compare view #10663
Comments
I'm experiencing this! Any updates on when there'll be a fix :) |
Editing code in the diff view is my primary workflow, so this bug makes VS-code basically unusable for me :o( |
I agree. Never thought this could be a issue. Currently using notepad++ , really need this feature to be implemented. |
This is a very annoying bug. For other users, as a workaround, you can open a new window of VSCode to reference the diff editor against (to avoid changing tabs). |
Pushed a fix without introducing a new extra setting, lets try it out in insiders and see how it goes. The new behaviour is that the view state is always preserved and restored as long as the diff editor is not closed. Verify:
|
When you are comparing two tabs, and click on another tab and come back, the scroll position is lost and you end up at the top of the file. In my use case, I'm comparing SQL scripts and have an additional tab for manually creating a merge script. When I come back to the compare, I've lost my position.
While it looks like it's refreshing the comparison when you tab back, it seems like it could be a little more intelligent in either remembering the scroll position, or only refreshing if one of the two compared files has been modified.
Steps to Reproduce:
The text was updated successfully, but these errors were encountered: