|
2828 | 2828 | }, |
2829 | 2829 | { |
2830 | 2830 | "command": "pr.openChanges", |
2831 | | - "when": "view =~ /(pr|prStatus):github/ && viewItem =~ /(pullrequest|description)/ && config.multiDiffEditor.experimental.enabled", |
| 2831 | + "when": "view =~ /(pr|prStatus):github/ && viewItem =~ /(pullrequest|description)/", |
2832 | 2832 | "group": "2_pullrequest@1" |
2833 | 2833 | }, |
2834 | 2834 | { |
|
2863 | 2863 | }, |
2864 | 2864 | { |
2865 | 2865 | "command": "issue.chatSummarizeIssue", |
2866 | | - "when": "view == pr:github && viewItem =~ /pullrequest/ && github.copilot-chat.activated && config.githubPullRequests.experimental.chat", |
| 2866 | + "when": "view == pr:github && viewItem =~ /pullrequest/ && github.copilot-chat.activated && config.githubPullRequests.experimental.chat && !config.chat.disableAIFeatures", |
2867 | 2867 | "group": "5_pullrequest@2" |
2868 | 2868 | }, |
2869 | 2869 | { |
|
2873 | 2873 | }, |
2874 | 2874 | { |
2875 | 2875 | "command": "pr.openChanges", |
2876 | | - "when": "view =~ /(pr|prStatus):github/ && viewItem =~ /(pullrequest|description)/ && config.multiDiffEditor.experimental.enabled", |
| 2876 | + "when": "view =~ /(pr|prStatus):github/ && viewItem =~ /(pullrequest|description)/", |
2877 | 2877 | "group": "inline@0" |
2878 | 2878 | }, |
2879 | 2879 | { |
|
2889 | 2889 | { |
2890 | 2890 | "command": "notification.chatSummarizeNotification", |
2891 | 2891 | "group": "issues_0@0", |
2892 | | - "when": "view == notifications:github && (viewItem == 'Issue' || viewItem == 'PullRequest') && config.githubPullRequests.experimental.notificationsView && config.githubPullRequests.experimental.chat" |
| 2892 | + "when": "view == notifications:github && (viewItem == 'Issue' || viewItem == 'PullRequest') && config.githubPullRequests.experimental.notificationsView && config.githubPullRequests.experimental.chat && !config.chat.disableAIFeatures" |
2893 | 2893 | }, |
2894 | 2894 | { |
2895 | 2895 | "command": "notification.openOnGitHub", |
|
3037 | 3037 | }, |
3038 | 3038 | { |
3039 | 3039 | "command": "issue.chatSummarizeIssue", |
3040 | | - "when": "view == issues:github && viewItem =~ /^(link)?(current|continue)?issue/ && github.copilot-chat.activated && config.githubPullRequests.experimental.chat", |
| 3040 | + "when": "view == issues:github && viewItem =~ /^(link)?(current|continue)?issue/ && github.copilot-chat.activated && config.githubPullRequests.experimental.chat && !config.chat.disableAIFeatures", |
3041 | 3041 | "group": "issues_1@0" |
3042 | 3042 | }, |
3043 | 3043 | { |
3044 | 3044 | "command": "issue.chatSuggestFix", |
3045 | | - "when": "view == issues:github && viewItem =~ /^(link)?(current|continue)?issue/ && github.copilot-chat.activated && config.githubPullRequests.experimental.chat", |
| 3045 | + "when": "view == issues:github && viewItem =~ /^(link)?(current|continue)?issue/ && github.copilot-chat.activated && config.githubPullRequests.experimental.chat && !config.chat.disableAIFeatures", |
3046 | 3046 | "group": "issues_1@1" |
3047 | 3047 | }, |
3048 | 3048 | { |
3049 | 3049 | "command": "issue.assignToCodingAgent", |
3050 | | - "when": "view == issues:github && viewItem =~ /^(link)?(current|continue)?issue/ && config.githubPullRequests.codingAgent.enabled", |
| 3050 | + "when": "view == issues:github && viewItem =~ /^(link)?(current|continue)?issue/ && config.githubPullRequests.codingAgent.enabled && !config.chat.disableAIFeatures", |
3051 | 3051 | "group": "issues_1@2" |
3052 | 3052 | }, |
3053 | 3053 | { |
|
3100 | 3100 | "command": "pr.unresolveReviewThreadFromView", |
3101 | 3101 | "group": "context@1", |
3102 | 3102 | "when": "commentController =~ /^github-(browse|review)/ && commentThread =~ /canUnresolve/" |
| 3103 | + }, |
| 3104 | + { |
| 3105 | + "command": "pr.applySuggestionWithCopilot", |
| 3106 | + "group": "context@2", |
| 3107 | + "when": "commentController =~ /^github-review/ && !config.chat.disableAIFeatures" |
3103 | 3108 | } |
3104 | 3109 | ], |
3105 | 3110 | "editor/title": [ |
|
3256 | 3261 | }, |
3257 | 3262 | { |
3258 | 3263 | "command": "pr.applySuggestionWithCopilot", |
3259 | | - "when": "commentController =~ /^github-review/ && !(comment =~ /hasSuggestion/)" |
| 3264 | + "when": "commentController =~ /^github-review/ && !config.chat.disableAIFeatures" |
3260 | 3265 | } |
3261 | 3266 | ], |
3262 | 3267 | "comments/comment/title": [ |
|
3268 | 3273 | { |
3269 | 3274 | "command": "pr.applySuggestionWithCopilot", |
3270 | 3275 | "group": "overflow@0", |
3271 | | - "when": "commentController =~ /^github-review/ && !(comment =~ /hasSuggestion/)" |
| 3276 | + "when": "commentController =~ /^github-review/ && !config.chat.disableAIFeatures" |
3272 | 3277 | }, |
3273 | 3278 | { |
3274 | 3279 | "command": "pr.editComment", |
|
3552 | 3557 | }, |
3553 | 3558 | { |
3554 | 3559 | "command": "pr.copyPrLink", |
3555 | | - "when": "webviewId == PullRequestOverview && github:copyMenu" |
| 3560 | + "when": "(webviewId == PullRequestOverview || webviewId == IssueOverview) && github:copyMenu" |
3556 | 3561 | }, |
3557 | 3562 | { |
3558 | 3563 | "command": "pr.copyVscodeDevPrLink", |
|
3597 | 3602 | "chat/chatSessions": [ |
3598 | 3603 | { |
3599 | 3604 | "command": "pr.openChanges", |
3600 | | - "when": "chatSessionType == copilot-cloud-agent", |
| 3605 | + "when": "chatSessionType == copilot-cloud-agent && !config.chat.disableAIFeatures", |
3601 | 3606 | "group": "inline" |
3602 | 3607 | }, |
3603 | 3608 | { |
3604 | 3609 | "command": "pr.checkoutChatSessionPullRequest", |
3605 | | - "when": "chatSessionType == copilot-cloud-agent", |
| 3610 | + "when": "chatSessionType == copilot-cloud-agent && !config.chat.disableAIFeatures", |
3606 | 3611 | "group": "context" |
3607 | 3612 | } |
3608 | 3613 | ], |
3609 | 3614 | "chat/input/editing/sessionToolbar": [ |
3610 | 3615 | { |
3611 | 3616 | "command": "pr.checkoutFromDescription", |
3612 | 3617 | "group": "navigation@0", |
3613 | | - "when": "chatSessionType == copilot-cloud-agent && workspaceFolderCount > 0 && github.vscode-pull-request-github.activated" |
| 3618 | + "when": "chatSessionType == copilot-cloud-agent && workspaceFolderCount > 0 && github.vscode-pull-request-github.activated && !config.chat.disableAIFeatures" |
3614 | 3619 | }, |
3615 | 3620 | { |
3616 | 3621 | "command": "pr.applyChangesFromDescription", |
3617 | 3622 | "group": "navigation@1", |
3618 | | - "when": "chatSessionType == copilot-cloud-agent && workspaceFolderCount > 0 && github.vscode-pull-request-github.activated" |
| 3623 | + "when": "chatSessionType == copilot-cloud-agent && workspaceFolderCount > 0 && github.vscode-pull-request-github.activated && !config.chat.disableAIFeatures" |
3619 | 3624 | } |
3620 | 3625 | ] |
3621 | 3626 | }, |
|
0 commit comments