Hit box for tree collapse vs mark file as viewed is wrong

Đang mở
#9,123 0 bình luận 1 reaction 2 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

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

Từ ngày 2/11/2026.

  • #345509 của @copilot-swe-agent — đang mở

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
58/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript, vscode
Lĩnh vực
developer-experience

Hướng nghiên cứu

Start in the GitHub Pull Request View code that renders the changed-file tree and the "file viewed" checkbox, then inspect how their click targets overlap. Reproduce with a click near the checkbox's left edge and compare it with clicks on the other edges. Done when clicks inside the checkbox toggle viewed state without collapsing the directory, while clicks on the collapse control still work.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

  • Extension version: 0.175.2026102804
  • VSCode Version: 1.444.0 (happens with other older versions too)
  • OS: Linux, Ubuntu, GNOME, Wayland
  • Repository Clone Configuration (single repository/fork of an upstream repository): Single repository
  • GitHub Product (GitHub.com/GitHub Enterprise version x.x.x): GitHub.com

Steps to Reproduce:

  1. Check out a PR
  2. Go to the GitHub Pull Request View
  3. Place the pointer fully inside the "file viewed" checkbox, but near the edge
  4. Click the mouse
  5. Observe that it collapses the item instead of checking the box

This screenshot shows a pointer click location that will not check the box:

Image

Observe that there is clear space inside the checkbox on all sides of the pointer.

And yet, clicking here toggles the collapse/expand of the directory instead.

Interestingly, the hitbox boundary is precisely placed on the right, top, and bottom sides.

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

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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.

Issue khác của microsoft/vscode-pull-request-github

Tất cả issue của microsoft/vscode-pull-request-github

Issue tương tự

Thêm issue về TypeScript

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.