microsoft / microsoft/vscode-pull-request-github

Lost, overridden or misplaced pending comments

Đang mở
#6,950 3 bình luận 3 reaction 1 người được giao Xem trên GitHub

@alexr00 đang làm issue này rồi.

Từ ngày 10/12/2025.

bug
Ngôn ngữ chính
TypeScript
Star
2.6k
Fork
795
Merge trung bình
1 ngày 4 giờ
Pull request đã merge (30 ngày)
46

Mô tả

This heisenbug seems to appear when trying to add comments to pull request before it is submitted (PR review in pending state).

Sometimes when I am writing a series of comments in a PR one of the following happens:

  • comment contents are swapped/overridden or moved around in the file, for example when I add a comment to line 12 and 16, seemingly, unbeknownst to me, the comment 12 and 16 swap contents, 16 overrides 12 and duplicates the content or the comment moves around
  • comments are lost completely and don't synchronize properly (this can be seen when opening the comment, clicking "more" three dots and being unable to click "edit comment", because it's disabled along with the 3 other last options)
  • A comment is completely lost from a file (e.g. when I added it in VSCode, but it's not visible on github and later completely missing).
  • A comment moves from one file to another. For example It's added to the file A, and after a while appears in a place of another comment I tried adding later in file B.
  • When writing a series of comments (still pending to publish a review!), and when in the meantime a coworker makes edits to some files, some comments are lost, moved around to random lines, between files and some of them get duplicated.

Unfortunately I don't have much details, but I believe it occurs repeatedly when the sync of the comment to the repository is not immediate, and they get added in a random order messing everything up.

This also looks like a mix of issues between both VSCode PR extension and poor PR comment API on github side.

  • Extension version: 0.110.0
  • VSCode Version: 1.100.0
  • OS: Linux x64 6.11.0-25-generic
  • Repository Clone Configuration (single repository/fork of an upstream repository): single repository on enterprise hosted github.
  • Github Product (Github.com/Github Enterprise version x.x.x): Github Enterprise, probably 3.16.1

Steps to Reproduce:

Unfortunately, I didn't find a reliable way to reproduce. I propose adding artificial delay to sync comments for testing and making interleaved comment changes, edits and commits while some comments already exist and some are yet to be written. Preferably from another source as well (a coworker or another editor)

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.