Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

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

未關閉 適合新手
#9,072 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 2 天內回覆

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
82/100
Issue 類型
缺陷
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
github, typescript, vscode

研究方向

從src/github/externalUriOpener.ts開始,追蹤 opener 如何接收openContext並呼叫 PR 和 issue 概觀方法。在src/github/pullRequestOverview.ts中檢查現有的放置處理,接著為在指定側邊群組中建立和顯示面板新增迴歸測試。完成標準是兩種概觀類型都遵循ViewColumn.Beside,而一般開啟仍維持目前的行為。

由索引模型根據 Issue 內容生成。

描述

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

主要語言
TypeScript
星號
2.6k
分支
804
平均合併
2 天 1 小時
30 天內合併 PR
42

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

microsoft/vscode-pull-request-github 的其他 Issue

查看 microsoft/vscode-pull-request-github 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。