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

Consistently expand or collapse all comments on a line #176967

Merged
merged 2 commits into from Mar 13, 2023

Conversation

hermannloose
Copy link
Contributor

Fixes #77155.

I verified this locally with a test extension that populates some comments, but have not covered the scenario of collapsing a newly created comment thread, where collapsing apparently is meant to delete the thread again in hide():

PR microsoft#176641 cleaned up the redundant, explicit calls to these methods in
`toggleExpand()` as they already happen in the
`onDidChangeCollapsibleState` listener if `_expanded` doesn't match the
new collapsible state. `hide()` was also adjusted there to call
`deleteCommentThread()` as needed.
Copy link
Member

@alexr00 alexr00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you!

@alexr00 alexr00 added this to the March 2023 milestone Mar 13, 2023
@alexr00 alexr00 merged commit d492168 into microsoft:main Mar 13, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Apr 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Confusing behavior when collapsing/expanding comment threads if several exist on the same line
3 participants