Skip to content

Comment widget disappears after adding comment #3345

Open

Description

@roblourens

Testing microsoft/vscode#143545

  • Open a PR
  • Add a comment
  • I see the comment submitted, then after a short delay, the comment widget in the editor disappears

Is this by design? If so, then the issue is that it doesn't disappear immediately, but after a delay. It is long enough for me to try to add a second reply to the thread, then the widget disappears while I am typing.

Recording 2022-02-23 at 11 14 49

Activity

  1. added
    bug
    on Feb 24, 2022
  2. removed
    bug
    on Feb 24, 2022
  3. alexr00 commented on Feb 24, 2022

    @alexr00
    Member

    roblourens I can only reproduce when I have "githubPullRequests.commentExpandState": "collapseAll" set, and I think collapsing the comment is correct in this case.

    I agree about the delay and I will remove it.

  4. alexr00 commented on Feb 24, 2022

    @alexr00
    Member

    Looks like this isn't possible without new API to allow a comment to be created in a collapsed state.

  5. added
    bug
    on Feb 24, 2022
  6. added this to the On Deck milestone on Feb 24, 2022
  7. roblourens commented on Feb 24, 2022

    @roblourens
    MemberAuthor

    Oh yeah, I didn't realize I had a setting set for that

  8. yhmtsai commented on May 25, 2023

    @yhmtsai

    Hi, I also face similar issue on github.dev.
    add a comment, and it will disappear after a few minutes without any collapsing action.
    It still shows on the github pull request page but it will not be in github.dev or vscode pull request view.
    comment_disapper
    the commentExpandState is expendUnresolved
    the pull request version is v0.64.0 on github.dev.
    vscode pull request also encounter the similar situation

  9. alexr00 commented on May 26, 2023

    @alexr00
    Member

    Yu-Hsiang M. Tsai (@yhmtsai) can you share the output of GitHub Pull Reques next time you see this issue?

  10. yhmtsai commented on May 26, 2023

    @yhmtsai

    Alex Ross (@alexr00) sure, the following is the output
    the comments disappears when 2023-05-26 16:37:42.517 info comes

    2023-05-26 16:33:25.163 [info] PullRequestTree> Got all children for Files node
    2023-05-26 16:33:26.463 [info] PullRequestTree> Review threads have changed, refreshing Files node
    2023-05-26 16:33:26.464 [info] PullRequestTree> Review threads have changed, refreshing Commits node
    2023-05-26 16:33:26.472 [info] PullRequestTree> Getting children for Files node
    2023-05-26 16:33:26.477 [info] PullRequestTree> Got all children for Files node
    2023-05-26 16:37:42.517 [info] PullRequestTree> Local files have changed, refreshing Files node
    2023-05-26 16:37:42.530 [info] PullRequestTree> Getting children for Files node
    2023-05-26 16:37:42.531 [info] PullRequestTree> Got all children for Files node
    2023-05-26 16:37:46.655 [info] PullRequestTree> Comments have changed, refreshing Files node
    2023-05-26 16:37:46.656 [info] PullRequestTree> Comments have changed, refreshing Commits node
    2023-05-26 16:37:46.657 [info] PullRequestTree> Review threads have changed, refreshing Files node
    2023-05-26 16:37:46.658 [info] PullRequestTree> Review threads have changed, refreshing Commits node
    2023-05-26 16:37:46.714 [info] PullRequestTree> Getting children for Files node
    2023-05-26 16:37:46.715 [info] PullRequestTree> Got all children for Files node
    2023-05-26 16:37:46.829 [info] PullRequestTree> Getting children for Files node
    2023-05-26 16:37:46.830 [info] PullRequestTree> Got all children for Files node
    
  11. 7 remaining items

  12. alexr00 commented on Nov 19, 2024

    @alexr00
    Member

    Ronnie Dutta (@MetRonnie) are you using GitHub Enterprise? I found an issue in getting all comments there. The fix will be available in the pre-release build tomorrow.

  13. MetRonnie commented on Nov 19, 2024

    @MetRonnie

    Alex Ross (@alexr00) No, just standard GitHub

  14. alexr00 commented on Nov 19, 2024

    @alexr00
    Member

    In that case, can you provide a bit more information:

    • Are you starting a new comment thread?
    • Do you have the PR checked out?
  15. MetRonnie commented on Nov 19, 2024

    @MetRonnie

    Yes this happens when starting a new comment thread, with the PR checked out. (This video is at 1.2x speed to reduce file size)

    vscode-pr-2.mp4

    It also happens for PRs with any number of comments/commits.

    I have

    "githubPullRequests.commentExpandState": "collapseAll",
    

    but would not expect a comment I just made to automatically collapse

  16. alexr00 commented on Dec 2, 2024

    @alexr00
    Member

    With "githubPullRequests.commentExpandState": "collapseAll",, the current behavior is expected.

  17. MetRonnie commented on Dec 2, 2024

    @MetRonnie

    In that case I will open a new issue to act as a feature request to change this behaviour, if that is ok

  18. alexr00 commented on Dec 2, 2024

    @alexr00
    Member

    I think the correct behavior is that the comment is immediately closed when you hit the "add comment" button, instead of hanging around for a second. #3345 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugupstream/vscode

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions