Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 21, 2026

The pr.applySuggestion and pr.applySuggestionWithCopilot commands were missing from the Comments view panel context menu, despite being available in the inline comment widget.

Changes

Added both commands to commentsView/commentThread/context menu in package.json:

{
  "command": "pr.applySuggestion",
  "group": "context@2",
  "when": "commentController =~ /^github-review/ && comment =~ /hasSuggestion/"
},
{
  "command": "pr.applySuggestionWithCopilot",
  "group": "context@2",
  "when": "commentController =~ /^github-review/ && !(comment =~ /hasSuggestion/)"
}

This mirrors the existing registration in comments/commentThread/comment/context menu, ensuring consistent command availability across both the inline widget and panel views.

Original prompt

This section details on the original issue you should resolve

<issue_title>Apply suggestion with Copilot should also be shown in the "Comments" view</issue_title>
<issue_description>It is currently shown if I right-click on the comment within the Comment widget

Image

but not shown if I right-click on the comment within the Comments view

Image

Version: 1.109.0-insider (Universal)
Commit: acc954bd84a5cc0ec2a896706142b3ab5ad5a99c
Date: 2026-01-20T05:02:21.248Z
Electron: 39.2.7
ElectronBuildId: 13098910
Chromium: 142.0.7444.235
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Darwin arm64 25.2.0

GHPR 0.127.2026012004
</issue_description>

<agent_instructions>Add the apply with copilot command into the appropriate menu.</agent_instructions>

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


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

Copilot AI and others added 2 commits January 21, 2026 14:10
… Comments view

Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
Copilot AI changed the title [WIP] Add 'apply suggestion with Copilot' to Comments view Add Apply Suggestion commands to Comments view context menu Jan 21, 2026
Copilot AI requested a review from alexr00 January 21, 2026 14:15
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.

Apply suggestion with Copilot should also be shown in the "Comments" view

2 participants