PR file list keeps the old base after the base branch changes outside VS Code
Maintainer antworten meist innerhalb von 2 Tagen
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 68/100
- Issue-Typ
- Bug
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- github, typescript, vscode
- Bereich
- developer-experience, tooling
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
- 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.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 2.6k
- Forks
- 804
- Ø Merge
- 2 T. 1 Std.
- Gemergte PRs (30 T.)
- 42
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus microsoft/vscode-pull-request-github
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
microsoft/vscode-pull-request-github#9072 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Issue 3 — DocumentationOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
microsoft/vscode-pull-request-github#8792 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Add a setting to fully disable background PR state polling (causes editor to jump/scroll on focus regain)Evtl. vergeben @alexr00 hat das vor 1 Tag übernommen. Offen
microsoft/vscode-pull-request-github#9077 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 55/100
microsoft/vscode-pull-request-github#9075 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Plugin no longer gives access to GitHub issues while using personal account.Evtl. vergeben @alexr00 hat das vor 7 Tagen übernommen. Offeninfo-needed
microsoft/vscode-pull-request-github#9064 · 2 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 2 Tagen
Alle Issues in microsoft/vscode-pull-request-github
Ähnliche Issues
-
ready-for-agent
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
xavxyz/bei-shan-lin-shui#57 ·
Maintainer antworten meist innerhalb von 1 Tag
-
[BUG] rag: sentence content can cross the reported sentence boundariesEvtl. vergeben @LJK-ikun hat das heute übernommen. Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
Maintainer antworten meist innerhalb von 1 Tag
-
bug needs-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
Maintainer antworten meist innerhalb von 1 Tag
-
README: the Resource URI Schemas example's file://documents/* pattern only matches that literal URIOffen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
platformatic/mcp#361 ·
Maintainer antworten meist innerhalb von 1 Tag
-
最近文档这个弹窗,左右宽度没有最小宽度限制Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
siyuan-note/siyuan#20799 · 7 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag