Skip to content

Proposal for updating commenting area for diffs #115808

Closed

Description

I was exploring ways to improve the PR experience in VS Code and one of the ideas involved updating the glyph area for comments. Currently we show a gray bar and a unicode + and ♦ that don't look very pretty.

Current

image

Proposal

A couple of things I explored:

  • Moving glyph area to the left of line numbers. This helps create separation between between the scm indicators and a clear area for adding comments.
  • Adding button for adding and view comments. This follows a similar pattern on GitHub for reviewing changes.
  • Hiding diff chunk areas. This reduces the visual noise and I think most people will be commenting on changed lines in the PR as opposed to lines that are not related
  • Adding color to the + and - changes to look visually pleasing

Kapture 2021-02-04 at 16 36 03

Unsure who should I assign to so assigning to Peng Lyu (@rebornix) and Alexandru Dima (@alexdima) for now

Activity

  1. added
    ux
    diff-editor
    comments
    on Feb 5, 2021
  2. miguelsolorio commented on Feb 5, 2021

    @miguelsolorio
    ContributorAuthor

    Some additional feedback from the team:

    • We might still need the indicator for comment areas, particularly when viewing files with changes in review mode where the diffs are not present
      image
    • We could also surface the "add comment" button on line hover to increase discoverability
  3. added
    feature-request
    on Feb 5, 2021
  4. 7 remaining items

  5. alexr00 commented on Aug 8, 2022

    @alexr00
    Member

    Here's what I'm thinking:

    Recording 2022-08-08 at 14 31 12 (1)

    • It uses the comment codicon for lines with a comment thread.
    • Keeps the existing + for add
    • Makes them both look a little more clickable but making them more square and giving them rounded corners.

    @misolori and David Dossett (@daviddossett) what do you think? I didn't add any color for now and I kept everything to the right of the line numbers still.

  6. added a commit that references this issue on Aug 8, 2022
    e6531e4
  7. miguelsolorio commented on Aug 8, 2022

    @miguelsolorio
    ContributorAuthor

    Alex Ross (@alexr00) this is looking great, love that we can have codicon support in the comments! I know you mentioned you hadn't added any color, is that something that you'd be open for us to add? I did a quick mockup that shows an alternate styling:

    CleanShot 2022-08-08 at 08 57 41@2x

  8. alexr00 commented on Aug 8, 2022

    @alexr00
    Member

    I didn't add color because I thought the blue was a bit too strong, but I really like the color in this mock up. I'll add it and merge the change!

    I also see that you're using the codicon +. I'll switch to that too.

  9. added
    unreleased
    on Aug 10, 2022
  10. added a commit that references this issue on Aug 10, 2022
    f117a2e
  11. added a commit that references this issue on Aug 10, 2022
    b290ec3
  12. added
    insiders-released
    and removed
    unreleased
    on Aug 11, 2022
  13. alexr00 commented on Aug 15, 2022

    @alexr00
    Member

    Also updated the multiline add:

    image

  14. locked and limited conversation to collaborators on Sep 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

commentsfeature-requestinsiders-releasedon-testplanux

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions