-
Notifications
You must be signed in to change notification settings - Fork 29.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a notion of pending / draft state to code review comments #171166
Comments
The GitHub Pull Requests extension uses the |
@alexr00 This is also our current approach, but it's text-only and does not enable the other use cases. I also realized I didn't make it very explicit above that the three listed use cases all work on the level of threads, not individual comments / replies. They rely on a notion of a |
This is a proposal for microsoft#171166.
@alexr00 I opened a PR so we have something more concrete to discuss. As mentioned, we are very flexible regarding the naming, this is just a starting point. |
This is a proposal for microsoft#171166.
This is a proposal for microsoft#171166.
This is a proposal for microsoft#171166.
Proposal: vscode/src/vscode-dts/vscode.proposed.commentsDraftState.d.ts Lines 10 to 21 in cc614c8
|
Adding to the March milestone for discussion. |
Notes from early API discussion:
|
I updated #173305 to remove |
@hermannloose this isn't planned work, so I don't have time allocated for it at the moment. I intend to take another look at this next week and I'll try to put it on the plan for April if I don't get to it next week. |
* Allow individual comments to be marked as draft This is a proposal for #171166. * Remove `hasDraftComments` from `CommentThread` * Rename `CommentVisibility` to `CommentState` * Rename `CommentVisibility` to `CommentState` * Add api proposal check --------- Co-authored-by: Alex Ross <[email protected]>
#127473 introduced
CommentThreadState
withUnresolved
andResolved
values to indicate the actionable vs non-actionable state of a particular conversation in code review.In addition to that, GitHub pull requests and other code review systems frequently treat new comment threads or specific replies added by a user as pending / draft, being visible only to the user until they publish all pending comments at the same time.
We propose adding a new field to
Comment
objects to model this state.For type, we think a boolean might be enough, but similar to #127473 we might want to use an enum instead for flexibility.
We don't have a preference for a particular name,
draft
,pending
, orpublished
(with inverse semantics) would all work well.Areas in VS Code that would benefit from having a draft state:
cc @laurentlb @JonasMa
The text was updated successfully, but these errors were encountered: