-
Notifications
You must be signed in to change notification settings - Fork 688
Add button to open issue or PR from summary #8268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
src/lm/tools/summarizeIssueTool.ts
Outdated
| const itemType = options.input.itemType; | ||
| if (owner && repo && issueNumber && itemType) { | ||
| const type = itemType === 'issue' ? 'issues' : 'pull'; | ||
| const url = `https://github.com/${owner}/${repo}/${type}/${issueNumber}`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot Don't use a github.com url, instead use a uri for our urihandler with toOpenIssueWebviewUri or toOpenPullRequestWebviewUri.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to use toOpenIssueWebviewUri and toOpenPullRequestWebviewUri instead of direct GitHub URLs. The Open button now uses the VS Code URI handler to open the webview within VS Code. (commit e314a3e)
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
Summary
Added "Open" button to issue/PR and notification thread summaries in panel-chat and quick-chat.
Changes Made
Implementation Details
The "Open" button:
toOpenIssueWebviewUrifor issues andtoOpenPullRequestWebviewUrifor pull requestsTOOL_COMMAND_RESULTAll automated checks passed successfully.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.