Skip to content

Add setting for external uri opener - #8936

Merged
Alex Ross (alexr00) merged 1 commit into
mainfrom
alexr00/musical-falcon
Sep 7, 2026
Merged

Add setting for external uri opener#8936
Alex Ross (alexr00) merged 1 commit into
mainfrom
alexr00/musical-falcon

Conversation

@alexr00

Copy link
Copy Markdown
Member

No description provided.

Copilot AI lite review requested due to automatic review settings September 7, 2026 14:47
@alexr00
Alex Ross (alexr00) enabled auto-merge (squash) September 7, 2026 14:47
@alexr00 Alex Ross (alexr00) self-assigned this Sep 7, 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 disabled-setting fallback opens openContext.sourceUri instead of the API-provided resolvedUri, which can result in opening the wrong target URI.

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.ts — When the setting is disabled, openExternalUri delegates to `openWithDefaultExternalOpener(openCont…
What changed in this PR

This PR introduces a new user setting that controls whether GitHub issue and pull request links are opened by this extension’s external URI opener (in VS Code) or left to the default external opener.

Changes:

  • Add githubPullRequests.openPullLinks setting (default: true) and localize its description.
  • Gate the external URI opener priority/behavior behind the new setting.
  • Extend unit coverage for the opener-priority helper when the feature is disabled.
File Description
src/​test/​common/​externalUri.test.ts Updates existing tests and adds coverage for the disabled-setting path.
src/​github/​externalUriOpener.ts Reads the new setting to decide whether to claim/open GitHub issue/PR URLs.
src/​common/​settingKeys.ts Adds a constant for the new setting key.
src/​common/​externalUri.ts Updates opener-priority helper to accept an enabled flag.
package.nls.json Adds localized description text for the new setting.
package.json Contributes the new boolean setting to VS Code configuration.

💡 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 ff4b74f into main Sep 7, 2026
7 checks passed
@alexr00
Alex Ross (alexr00) deleted the alexr00/musical-falcon branch September 7, 2026 14:56
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