vscode-pull-request-github icon indicating copy to clipboard operation
vscode-pull-request-github copied to clipboard

Add command to open GitHub issue from cursor position

Open Copilot opened this issue 2 months ago • 0 comments

Users can hover over issue references (e.g., #123, GH-456, owner/repo#789) to see issue details, but there was no command to open the issue on GitHub directly.

Changes

  • Command: Added issue.openIssueOnGitHub in IssueFeatureRegistrar

    • Resolves issue reference at cursor position using existing ISSUE_OR_URL_EXPRESSION regex
    • Opens issue URL in browser via vscode.open
    • Shows contextual warnings when no reference found or resolution fails
  • Registration: Added command to package.json with globe icon and localized title

Usage

Place cursor on any issue reference and invoke "GitHub Issues: Open Issue on GitHub" from command palette or via custom keybinding.

Supports: #123, GH-456, owner/repo#789, full GitHub URLs, and comment anchors.

Original prompt

This section details on the original issue you should resolve

<issue_title>Command & Keyboard Shortcut To Open Issue From Comment</issue_title> <issue_description>This extension has a code action that can be triggered when creating a comment that starts with key words like "TODO":

Image

Once it is created, you can hover over the issue number and see the following:

Image

It would be helpful if there was a command to open the issue (similar to the command pr.openPullRequestOnGitHub but for the current issue that is hovered on.

Complexity wise, this seems really simple to implement (maybe 10 - 20 lines of code). </issue_description>

Comments on the Issue (you are @copilot in this section)

  • Fixes microsoft/vscode-pull-request-github#6612

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot avatar Dec 10 '25 12:12 Copilot