Skip to content

Commit 48fab76

Browse files
Copilotalexr00
andcommitted
Add Apply Suggestion commands to Comments view context menu
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
1 parent 6622223 commit 48fab76

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3100,6 +3100,16 @@
31003100
"command": "pr.unresolveReviewThreadFromView",
31013101
"group": "context@1",
31023102
"when": "commentController =~ /^github-(browse|review)/ && commentThread =~ /canUnresolve/"
3103+
},
3104+
{
3105+
"command": "pr.applySuggestion",
3106+
"group": "context@2",
3107+
"when": "commentController =~ /^github-review/ && comment =~ /hasSuggestion/"
3108+
},
3109+
{
3110+
"command": "pr.applySuggestionWithCopilot",
3111+
"group": "context@2",
3112+
"when": "commentController =~ /^github-review/ && !(comment =~ /hasSuggestion/)"
31033113
}
31043114
],
31053115
"editor/title": [

0 commit comments

Comments
 (0)