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
FileViewer: ViewMode to track what is currently displayed #8496
Conversation
Codecov Report
@@ Coverage Diff @@
## master #8496 +/- ##
==========================================
- Coverage 55.29% 55.14% -0.16%
==========================================
Files 894 900 +6
Lines 64150 64492 +342
Branches 11450 11529 +79
==========================================
+ Hits 35473 35563 +90
- Misses 25958 26204 +246
- Partials 2719 2725 +6
Flags with carried forward coverage won't be shown. Click here to find out more. |
Are there any screenshots to see what's changing? I've never actually used that form... |
There are no visual changes This affects all file viewers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Reviewers should start with the diff of the Reset
function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few comments
9c5316c
to
bf3caed
Compare
I apologize, this does change the GitHub PR, I added screenshots. |
Refactor to handle the different "modes" like diff/text in a simpler way Add a FixedDiff mode to display patched with fixed comments that will not be changed by i.e. whitespace changes. Refresh when changing highlighting. * ViewPullRequestsForm (GitHub PR) * FormViewPatch * FormVerify
bf3caed
to
92e7f81
Compare
@msftbot merge in 24 hours |
Hello @gerhardol! Because you've given me some instructions on how to help merge this pull request, I'll be modifying my merge approach. Here's how I understand your requirements for merging this pull request:
If this doesn't seem right to you, you can tell me to cancel these instructions and use the auto-merge policy that has been configured for this repository. Try telling me "forget everything I just told you". |
There is at least one issue discussing this that I cannot find right now...
Proposed changes
This will also be used for the presentation part of #8471 that adds more internal changes as well as for #7825 when unifying code from FormCommit/RevDiff (FileStatusList will be required too then).
A CommitDiff mode can remove some duplicated code from FormCommit
Screenshots
Note that the title bar is not following the normal style, same for all plugins.
Before
After
Test methodology
Manual
✒️ I contribute this code under The Developer Certificate of Origin.