Skip to content

feat: indicate which changed files have MR discussions

Tomas Vik requested to merge 404-inidcate-discussions-2 into main

This MR introduces a 💬 decoration for all diff files that have GitLab discussions on them.

The feature consists of the following two changes that work together:

  • ChangedFileItem implementation so that the changedFileItem.resourceUri contains information whether the changed file has got any comments (?hasComments=true) or not (?hasComments=false)
  • We introduce a new decorator (has_comments_decoration_provider.ts) which parses the resourceUri and returns the 💬 if it contains ?hasComments=true query.

The MR also contains a few small refactorings. I tried to split the changes into multiple commits for easier review.

Item-0_and_Item-0_and_Item-0_and_Item-0_and_statusBarItem_and_Item-0_and_Item-0_and_Item-0_and_Item-0_and_Item-0

The files in the left-hand-side tree view are instances of ChangedFileItem class.

Related to #404 (closed)

Edited by Tomas Vik

Merge request reports