microsoft / microsoft/vscode-pull-request-github

Selecting Revert Selected Ranges in Github pull request plane seems weird

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

Chưa có ai nhận issue này.

feature-request
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ả

  • Extension version:0.42.0
  • VSCode Version: 1.67.2
  • OS: m1 mac pro

Seems like clicking 'Revert Selected Ranges' in github pull request plane works unexpectedly.

Steps to Reproduce:

  1. Check out my PR
  2. Go to Github Pull Request plane
  3. Select any file under 'CHANGES IN PULL REQUEST'; a diff view appears.
  4. Drag some changes, right click, select
    Unstage Selected Ranges -> no-op. I think it is reasonable since we didn't stage anything. However, when we select
    Revert Selected Ranges -> The file is messed up; some changes are duplicated and randomly placed.

At first, I expected Revert Selected Ranges to revert selected changes of the current file to what it looked like before the PR, but it didn't work. Is the behavior intended, or am I missing something?

If that is intended or not designed to use like this, is there a way to easily revert-some-selected-range-from-this-PR while staying on the 'diff' view? As a workaround, I manually git reset each file, revert the ranges that I don't want (in the diff view given by 'Source Control'), and re-stage the file.

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.

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện vấn đề trong ngăn GitHub Pull Request theo các bước được liệt kê, sau đó so sánh Revert Selected Ranges với quy trình diff của Source Control. Payload không nêu tệp nguồn hay bài kiểm thử nào; được xem là hoàn tất khi các phạm vi được chọn không còn tạo ra các thay đổi bị trùng lặp hoặc được đặt ngẫu nhiên, hoặc khi hành vi này được ghi lại rõ ràng là có chủ đích.

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

Đánh giá

Công nghệ
git, github, typescript, vscode
Lĩnh vực
developer-experience, devtools
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
25/100

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.