Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Conversation

@jcansdale
Copy link
Collaborator

@jcansdale jcansdale commented May 3, 2018

What this PR does

  • When diff LeftView is empty, automatically set to show RightViewOnly.
  • When diff RightView is empty, automatically set to show LeftViewOnly.

Previously when a file was added or deleted, the PR file diff view would show an empty view on the left or right side (depending on whether it was added or deleted).

image

This PR makes the diff view automatically hide the empty side.

image

This frees up a lot more space when adding or reviewing comments.

image

When a side it hidden in this way, the diff mode option will be ignored for this view (it's a global option and will be honored for views where there is something to diff).

image

Fixes #1624

jcansdale added 2 commits May 3, 2018 09:24
When diff LeftView is empty, automatically set to show RightViewOnly.
When diff RightView is empty, automatically set to show LeftViewOnly.

Fixes #1624
Copy link
Contributor

@grokys grokys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM, and is a welcome change.

I was worried that setting the LHS/RHS-only setting would persist to diff views opened by e.g. Team Explorer Changes but that doesn't seem to be the case

@jcansdale jcansdale merged commit aeb4ec8 into master May 3, 2018
@jcansdale jcansdale deleted the fixes/1624-hide-diff-view-side-when-empty branch May 3, 2018 16:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants