Skip to content

Draft: feat(mr review): indicate the change type on MR diff files

Tomas Vik requested to merge 276-indicate-change-type into main

This MR is a Draft, till I add automated tests

The colorcoding on the "after" picture is:

  • removed file: red and D character
  • added file: green and A character
  • renamed file: orange and R character
  • modified file: default color and M character
before after
Extension_Development_Host_-_Welcome___test-project Extension_Development_Host_-_Welcome___test-project
gitlab_new_service_ts___gitlab-vscode-extension Extension_Development_Host_-_gitlab_new_service_ts___gitlab-vscode-extension-TEST

How VS Code native source control sidebar indicates changes

new_file_ts___gitlab-vscode-extension

Unfortunately, VS Code doesn't let us replicate the same experience. We use the FileDecoration and we can only set color of the whole line and we can't strike through.

Related to #276 (closed)

Edited by Tomas Vik

Merge request reports