vscode-pull-request-github
vscode-pull-request-github copied to clipboard
Add Cmd/Ctrl+R keybinding to refresh PR overview in editor
Users expect standard refresh shortcuts to work when viewing a PR overview in the editor. Currently, the refresh functionality exists but requires clicking a button or using the command palette.
Changes
- Added keybinding in
package.jsonmapping Cmd+R (Mac) / Ctrl+R (Windows/Linux) to the existingpr.refreshDescriptioncommand - Scoped to only activate when
activeWebviewPanelId == 'PullRequestOverview'to avoid conflicts with other editor contexts
{
"key": "ctrl+r",
"mac": "cmd+r",
"command": "pr.refreshDescription",
"when": "activeWebviewPanelId == 'PullRequestOverview'"
}
No changes to command logic required - leverages existing refresh implementation.
Original prompt
This section details on the original issue you should resolve
<issue_title>Command R should refresh PR when in editor view</issue_title> <issue_description>I want to use Command R shortcut to refresh the main PR view when open in the editor</issue_description>
Comments on the Issue (you are @copilot in this section)
- Fixes microsoft/vscode-pull-request-github#7117
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.