stable

Clone or download

Read-only

Display comments in side-by-side diff

Part of story #11667 display diff side by side How to test: - Browse a pullrequest - In the side-by-side diff, the comments are shown. - Comments on deleted code are on the left-hand side. - Comments on added and unchanged code are on the right-hand side. - A placeholder with the same height is added on unchanged lines with comments. - The "existing" placeholders for added/deleted lines are adjusted with the height of comments. - References and tooltips on comments are shown - Scrolling in files with comments stays generally aligned. Will be done later: - Adding comments in side-by-side diff Change-Id: Ibf6dd1d4b94f825d6c6b0db7e2507c93c471c506

Modified Files

Name
M plugins/pullrequest/www/scripts/src/app/file-diff/codemirror-helper-service.js +28 −4 Go to diff View file
M plugins/pullrequest/www/scripts/src/app/file-diff/diff-modes/side-by-side-data-builder.js +22 −10 Go to diff View file
M plugins/pullrequest/www/scripts/src/app/file-diff/diff-modes/side-by-side-data-builder.spec.js +106 −65 Go to diff View file
M plugins/pullrequest/www/scripts/src/app/file-diff/diff-modes/side-by-side-diff-component.js +112 −28 Go to diff View file