Add command to open GitHub issue from cursor position
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.openIssueOnGitHubinIssueFeatureRegistrar- Resolves issue reference at cursor position using existing
ISSUE_OR_URL_EXPRESSIONregex - Opens issue URL in browser via
vscode.open - Shows contextual warnings when no reference found or resolution fails
- Resolves issue reference at cursor position using existing
-
Registration: Added command to
package.jsonwith 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":
![]()
Once it is created, you can hover over the issue number and see the following:
![]()
It would be helpful if there was a command to open the issue (similar to the command
pr.openPullRequestOnGitHubbut 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.