Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

Honor open-to-side placement when opening GitHub PR and issue links

Offen Anfängerfreundlich
#9,072 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
82/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
github, typescript, vscode

Rechercherichtung

Beginne in src/github/externalUriOpener.ts und verfolge, wie der Opener openContext erhält und die Methoden für PR- und Issue-Übersichten aufruft. Prüfe in src/github/pullRequestOverview.ts die vorhandene Handhabung der Platzierung und füge anschließend Regressionstests für das Erstellen und Anzeigen von Panels in der angeforderten Seitengruppe hinzu. Das Ziel ist erreicht, wenn beide Übersichtstypen ViewColumn.Beside berücksichtigen und gewöhnliche Öffnungen ihr bisheriges Verhalten beibehalten.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Summary

Opening a GitHub PR link with an explicit open-to-side request still opens/reveals the PR overview in the current editor group. The GitHub Pull Requests external URI opener receives a placement request from VS Code but does not forward it to the overview panel.

This was reproduced in a live Code OSS development instance using the Quick Open link support in https://github.com/microsoft/vscode/pull/342081 (implements https://github.com/microsoft/vscode/issues/342051).

Steps to reproduce

  1. Use a VS Code build with Quick Open link support and external-opener placement context, and enable the GitHub Pull Requests link handler.
  2. Sign in/authorize GitHub Pull Requests. Keep an existing document open in a single editor group.
  3. Press Ctrl+P and enter https://github.com/microsoft/vscode/pull/342081.
  4. Accept the Open Link result with Alt+Enter (an explicit open-to-side gesture).

Expected: The GitHub Pull Requests overview opens beside the originating document, preserving that document in its group.

Actual: The PR overview opens in the same editor group. No side group is created. The user also observed the same placement problem with Alt+click; the instrumented reproduction below specifically used Alt+Enter in Quick Open.

Live dbgjs evidence

A non-pausing breakpoint at MainThreadUriOpeners.createOpener recorded the context immediately before the call into the extension host:

{
  "id": "GitHub.vscode-pull-request-github.issueOrPullRequest",
  "uri": "https://github.com/microsoft/vscode/pull/342081",
  "viewColumn": -2
}

-2 is ViewColumn.Beside. After the request, the workbench still had one editor group, containing the original Untitled-1 tab and the #342081 Support opening... PR tab.

This demonstrates that Quick Open and the workbench external-opener pipeline are forwarding the side-placement request; the PR extension is not honoring it. The temporary breakpoint was removed after tracing.

Code pointers / suggested fix

Please honor openContext.viewColumn === vscode.ViewColumn.Beside when supplied by a supporting VS Code host, and forward the request for both PR and issue overviews. Preserve ordinary opening behavior when no side placement is requested. Include regression coverage for both creating a panel and revealing an existing panel in the requested side group. Issue-overview impact is inferred from the shared source path; the live reproduction was for a PR.

Environment

  • Windows, Code OSS development build, VS Code branch used by microsoft/vscode#342081.
  • Live placement trace: GitHub Pull Requests 0.170.0 (stable).
  • The installed prerelease 0.171.2026101604 was also inspected; its URI opener likewise did not forward placement. Separate authentication/rendering problems encountered during setup are not the subject of this report.

Related navigation story: https://github.com/microsoft/vscode/issues/342050
Related Alt+click request: https://github.com/microsoft/vscode/issues/340724

Vorherrschende Sprache
TypeScript
Sterne
2.6k
Forks
805
Ø Merge
1 T. 23 Std.
Gemergte PRs (30 T.)
41

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

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus microsoft/vscode-pull-request-github

Alle Issues in microsoft/vscode-pull-request-github

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.