close
Skip to content

Preserve view state when switching tabs on compare view #10663

Description

@ascendedguard
  • VSCode Version: 1.4.0
  • OS Version: Windows 10 Version 1607

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:

  1. Open two tabs.
  2. Files: Compare active file with...

  3. Scroll down on compare
  4. Click to another tab
  5. Click back to the compare tab
  6. Notice that scroll position has been lost.

Metadata

Metadata

Assignees

Labels

diff-editorDiff editor issuesfeature-requestRequest for new features or functionalityverification-neededVerification of issue is requestedverifiedVerification succeededworkbench-editorsManaging of editor widgets in workbench window

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions