PR file list keeps the old base after the base branch changes outside VS Code
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đá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
- 68/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ệ
- github, typescript, vscode
- Lĩnh vực
- developer-experience, tooling
Hướng nghiên cứu
Start by tracing the Pull Requests view refresh flow through pr.refreshList, createOrUpdatePullRequestModel(), and getChangeModels() in dist/extension.js, as identified in the issue. Check how cached file changes are invalidated when the base branch changes, then reproduce with a PR whose new base changes the file diff. Done means Refresh shows the same file changes as GitHub’s “Files changed” tab without reloading the window.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
- Extension version: 0.170.0
- VSCode Version: 1.142.0
- OS: Windows 11
- 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:
- Have an open PR listed in the Pull Requests view.
- Change its base branch outside VS Code, for example with
gh pr edit <number> --base <branch>, to a branch where the PR's files differ. - Expand the PR in the Pull Requests view, then click Refresh and expand it again.
Result: the file list still compares against the old base. In my case, files that the new base already has as renamed show as deleted and added. Only Developer: Reload Window fixes it. GitHub's "Files changed" tab shows them as modified.
Expected: Refresh shows the files against the new base.
From reading dist/extension.js (not debugged): pr.refreshList calls forceClearCache(), and createOrUpdatePullRequestModel() keeps the existing model and calls update(), which sets the new base. Nothing clears _fileChanges, and getChangeModels() reuses it while it isn't empty.
- Ngôn ngữ chính
- TypeScript
- Star
- 2.6k
- Fork
- 804
- Merge trung bình
- 2 ngày 1 giờ
- Pull request đã merge (30 ngày)
- 42
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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/vscode-pull-request-github
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
microsoft/vscode-pull-request-github#9072 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Issue 3 — DocumentationĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
microsoft/vscode-pull-request-github#8792 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Add a setting to fully disable background PR state polling (causes editor to jump/scroll on focus regain)Có thể đã có người làm @alexr00 đã nhận 1 ngày trước. Đang mở
microsoft/vscode-pull-request-github#9077 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
microsoft/vscode-pull-request-github#9075 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Plugin no longer gives access to GitHub issues while using personal account.Có thể đã có người làm @alexr00 đã nhận 6 ngày trước. Đang mởinfo-needed
microsoft/vscode-pull-request-github#9064 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của microsoft/vscode-pull-request-github
Issue tương tự
-
frontend
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
ranxianglei/billion-context#4172 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
awslabs/threat-composer#362 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Area/Cloud Needs Triage Type/Bug
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 86/100
wso2/product-integrator#2847 ·
Maintainer thường phản hồi trong vòng 1 ngày