GeezerVison is showing github.com — Hide resolved comments in changes tree; Indicate resolved comments on margin by jcansdale · Pull Request #2253 · github/VisualStudio
This repository was archived by the owner on Jun 21, 2023. It is now read-only.
Conversation
jcansdale
commented
Mar 1, 2019
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Previously pull request comments would be implicitly resolved when when the text near to the comment was changed. GitHub now supports comments being explicitly resolved by a user and comments becoming implicitly outdated when the text near to the comment is changed.
This pull request surfaces the IsResolved status of a review comment threads and hides resolved comments from the changes tree (in a similar way to how outdated comments are hidden). This makes it easy to find comments that still need to be addressed when responding to a pull request review.
What this PR does
- Use
pullRequest/reviewThreads to populate the IsResolved status of a pull request comment threads
- When using GitHub Enterprise fall back to using original model (
reviewThreads might not be available)
- Hide resolved comments from the changes tree
- Show different in-line comment glyph for resolved comments (an empty circle)
- Show banner to clearly indicate when a thread has been resolved
To do
- Support fallback for older versions of GitHub Enterprise
- Indicate outdated in-line comments in glyph

- Show banner on resolved comment threads

What this PR doesn't do
- Probe GitHub Enterprise schema to see if we could fetch resolved comment information
- Surface comments that are outdated but unresolved
- Allow resolving of comments using inline comment view
How to test
- Open
https://github.com/grokys/PullRequestSandbox in Visual Studio
- Open Testing resolved comments grokys/PullRequestSandbox#58 in
GitHub pane
- Check that only 1 comment appears on
Program.cs

- Click on
💬 1 comment
- Check
Program.cs appears in diff view and comment is visible
- Check that empty circle glyph appears below indicating a resolved comment
- Click on the resolved comment glyph
- Check that
The conversation was marked as resolved banner appears above comment
Notes
Here is what is looks like in the Dark theme

Related #2245
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
meaghanlewis reacted with hooray emoji
Use pullRequest/reviewThreads instead of pullRequest/review/comments.
Only use reviewThreads/isResolved on github.com where they are guaranteed to be available.
Show, "This conversation was marked as resolved" on peek view when conversation has been marked as resolved.
jcansdale
changed the title
Show resolved status for pull request review comments
Hide resolved comments from changes tree and indicate resolved comments on margin
Mar 5, 2019
|
I went and did A Thing replacing the info icon with the one built into visual studio. The result is a look and feel closer to a native infobar:
Blue Theme!

Dark Theme!

At first I was concerned about how much it popped out in the Dark Theme even though I was using the background color that we get from Visual Studio. However, I think it's okay for the following reasons:
- I tend to look over this information when the background was less intrusive.
- It's what Microsoft does. 😆
We've diverged a bit from what I've prototyped but I think that's fine given that my prototype relied heavily on the interaction of collapsing resolved comments.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
@donokuda,
At first I was concerned about how much it popped out in the Dark Theme even though I was using the background color that we get from Visual Studio. However, I think it's okay for the following reasons:
- I tend to look over this information when the background was less intrusive.
I think this is a good call. 👍 We're trying to communicate that someone stuck a fork in this comment thread, you're probably done. Making this pop out is a good thing!
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
StanleyGoldman
changed the title
Hide resolved comments from changes tree and indicate resolved comments on margin
Hide resolved comments in changes tree; Indicate resolved comments on margin
Apr 11, 2019
Reviewers
grokys
Awaiting requested review from grokys
donokuda
Awaiting requested review from donokuda
1 more reviewer
Reviewers whose approvals may not affect merge requirements
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|