Skip to content
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

Automatically collapse comments once they are resolved #5031

Closed
joyceerhl opened this issue Jul 10, 2023 · 4 comments · Fixed by microsoft/vscode#192864
Closed

Automatically collapse comments once they are resolved #5031

joyceerhl opened this issue Jul 10, 2023 · 4 comments · Fixed by microsoft/vscode#192864
Assignees
Labels
feature-request Request for new features or functionality upstream/vscode verification-needed Verification of issue is requested verified Verification succeeded

Comments

@joyceerhl
Copy link
Contributor

  1. Have an unresolved comment on a pull request that is open in VS Code
  2. Click 'Resolve Conversation'
  3. Comment remains open, I still have to manually click collapse

I'd expect that resolving a comment also collapses the comment so that it no longer takes up space, which is what happens on github.com

@alexr00 alexr00 added the feature-request Request for new features or functionality label Jul 11, 2023
@alexr00 alexr00 added this to the August 2023 milestone Jul 11, 2023
@alexr00 alexr00 modified the milestones: August 2023, On Deck Aug 16, 2023
@alexr00
Copy link
Member

alexr00 commented Aug 16, 2023

This is going to need VS Code API to enable collapsing a comment. Just like the tree view, the comment thread collapsible state cannot be modified by the extension once set to prevent conflict between user state and extension state.

@alexr00
Copy link
Member

alexr00 commented Sep 12, 2023

The setting to control this is comments.collapseOnResolve. It is true by default.

@alexr00
Copy link
Member

alexr00 commented Sep 25, 2023

To verify:

  1. Install GitHub Pull Requests and Issues
  2. Open a PR file and leave a comment
  3. Resolve the comment
  4. Verify that the comment immediately closes
  5. Unresolve the comment
  6. Set "comments.collapseOnResolve": false
  7. Resolve the comment again
  8. Verify that the comment is not closed.

@alexr00 alexr00 added the verification-needed Verification of issue is requested label Sep 25, 2023
@meganrogge meganrogge added the verified Verification succeeded label Sep 26, 2023
@meganrogge
Copy link
Contributor

🎉 works well! such a great feature, thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality upstream/vscode verification-needed Verification of issue is requested verified Verification succeeded
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants