Skip to content

Add external URI opener for PRs and issues - #8918

Merged
Alex Ross (alexr00) merged 1 commit into
mainfrom
alexr00/watery-guppy
Sep 2, 2026
Merged

Add external URI opener for PRs and issues#8918
Alex Ross (alexr00) merged 1 commit into
mainfrom
alexr00/watery-guppy

Conversation

@alexr00

Copy link
Copy Markdown
Member

No description provided.

Copilot AI lite review requested due to automatic review settings September 2, 2026 11:16
@alexr00
Alex Ross (alexr00) enabled auto-merge (squash) September 2, 2026 11:16
@alexr00 Alex Ross (alexr00) self-assigned this Sep 2, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

The new external URI opener currently reports Preferred for matching URLs even when no repository managers are available, which can hijack link opens and then fail instead of falling back to the default browser opener.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review tier: Lite
Findings: 1 Medium severity

New issues introduced by this change (1)
Severity Finding
Medium severity src/​github/​externalUriOpener.tscanOpenExternalUri returns Preferred for any matching GitHub issue/PR URL even when the…
What changed in this PR

Adds a VS Code External URI opener so github.com/<owner>/<repo>/(pull|issues)/<number> links can be opened directly in the extension’s PR/Issue overview experience, while ensuring certain “open on GitHub” flows still force the default external opener.

Changes:

  • Introduces parsing + helper API for GitHub issue/PR URLs and a “force default opener” wrapper.
  • Registers an ExternalUriOpener that resolves and opens PRs/issues in the corresponding overview panels.
  • Updates existing “open external URL” call sites to bypass contributed openers (to avoid being re-captured by the new opener).
File Description
src/​common/​externalUri.ts Adds GitHub issue/PR URL parsing and a helper to force the default external opener.
src/​github/​externalUriOpener.ts Registers an external URI opener that routes GitHub PR/issue links into overview panels.
src/​github/​overviewRestorer.ts Registers the new external URI opener during extension setup.
src/​github/​pullRequestOverview.ts Uses the “force default opener” helper for fallback external link opens.
src/​github/​pullRequestModel.ts Uses the “force default opener” helper for “Open on GitHub”.
src/​commands.ts Uses the “force default opener” helper when opening PR URLs on GitHub.
src/​test/​common/​externalUri.test.ts Adds unit tests for the GitHub issue/PR URL parser.
src/​lm/​skills/​summarize-github-issue-pr-notification/​SKILL.md Removes specific guidance about formatting #123 references as links.
package.json Adds onOpenExternalUri:http/https activation events.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/github/externalUriOpener.ts
@alexr00
Alex Ross (alexr00) merged commit df3c31d into main Sep 2, 2026
7 checks passed
@alexr00
Alex Ross (alexr00) deleted the alexr00/watery-guppy branch September 2, 2026 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants