Skip to content

Commit 942fde7

Browse files
authored
Merge branch 'main' into copilot/improve-commit-line-breaks
2 parents a6d16e0 + ef521e8 commit 942fde7

33 files changed

+633
-175
lines changed

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
# Changelog
22

3+
## 0.128.0
4+
5+
### Changes
6+
7+
- "Apply Suggestion with Copilot" is now available from the "Comments" view, in addition to the comment widget in the editor. When run from this context, it will open the Chat view.
8+
- When a PR branch is automatically deleted after merge, a notification is shown to inform you that the branch was deleted and you were switched to another branch.
9+
- The issue URL in the issue webview is now copyable via the right-click context menu.
10+
- The "Pull Request" status bar item reflects the currently selected repo when using `"scm.repositories.selectionMode": "single"`.
11+
12+
### Fixes
13+
14+
- timelineItem nodes can be null. https://github.com/microsoft/vscode-pull-request-github/issues/8447
15+
- Branch auto delete does not work with merge queues. https://github.com/microsoft/vscode-pull-request-github/issues/8435
16+
- Error: we couldn't find commit. https://github.com/microsoft/vscode-pull-request-github/issues/8401
17+
- Multi-diff button for current pull request is gone. https://github.com/microsoft/vscode-pull-request-github/issues/8387
18+
- Do not create notifications for copilot PRs which are in progress. https://github.com/microsoft/vscode-pull-request-github/issues/8380
19+
- Error viewing PR descriptions in ghe. https://github.com/microsoft/vscode-pull-request-github/issues/8378
20+
- Marking a file as viewed on an older commit marks the file as viewed for all versions of the file. https://github.com/microsoft/vscode-pull-request-github/issues/8313
21+
- Use the GH GraphQL API UpdatePullRequestBranch for pulling in updates when there are no conflicts. https://github.com/microsoft/vscode-pull-request-github/issues/8231
22+
- "Copilot started work" should not be the same message for CCA and CCR. https://github.com/microsoft/vscode-pull-request-github/issues/8211
23+
- "Edit Description" button does nothing when using the Create Issue From Selection command. https://github.com/microsoft/vscode-pull-request-github/issues/8184
24+
- Avatar does not show in PR details page. https://github.com/microsoft/vscode-pull-request-github/issues/8152
25+
326
## 0.126.0
427

528
### Changes

package.json

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2828,7 +2828,7 @@
28282828
},
28292829
{
28302830
"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)/",
28322832
"group": "2_pullrequest@1"
28332833
},
28342834
{
@@ -2863,7 +2863,7 @@
28632863
},
28642864
{
28652865
"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",
28672867
"group": "5_pullrequest@2"
28682868
},
28692869
{
@@ -2873,7 +2873,7 @@
28732873
},
28742874
{
28752875
"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)/",
28772877
"group": "inline@0"
28782878
},
28792879
{
@@ -2889,7 +2889,7 @@
28892889
{
28902890
"command": "notification.chatSummarizeNotification",
28912891
"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"
28932893
},
28942894
{
28952895
"command": "notification.openOnGitHub",
@@ -3037,17 +3037,17 @@
30373037
},
30383038
{
30393039
"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",
30413041
"group": "issues_1@0"
30423042
},
30433043
{
30443044
"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",
30463046
"group": "issues_1@1"
30473047
},
30483048
{
30493049
"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",
30513051
"group": "issues_1@2"
30523052
},
30533053
{
@@ -3100,6 +3100,11 @@
31003100
"command": "pr.unresolveReviewThreadFromView",
31013101
"group": "context@1",
31023102
"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"
31033108
}
31043109
],
31053110
"editor/title": [
@@ -3256,7 +3261,7 @@
32563261
},
32573262
{
32583263
"command": "pr.applySuggestionWithCopilot",
3259-
"when": "commentController =~ /^github-review/ && !(comment =~ /hasSuggestion/)"
3264+
"when": "commentController =~ /^github-review/ && !config.chat.disableAIFeatures"
32603265
}
32613266
],
32623267
"comments/comment/title": [
@@ -3268,7 +3273,7 @@
32683273
{
32693274
"command": "pr.applySuggestionWithCopilot",
32703275
"group": "overflow@0",
3271-
"when": "commentController =~ /^github-review/ && !(comment =~ /hasSuggestion/)"
3276+
"when": "commentController =~ /^github-review/ && !config.chat.disableAIFeatures"
32723277
},
32733278
{
32743279
"command": "pr.editComment",
@@ -3552,7 +3557,7 @@
35523557
},
35533558
{
35543559
"command": "pr.copyPrLink",
3555-
"when": "webviewId == PullRequestOverview && github:copyMenu"
3560+
"when": "(webviewId == PullRequestOverview || webviewId == IssueOverview) && github:copyMenu"
35563561
},
35573562
{
35583563
"command": "pr.copyVscodeDevPrLink",
@@ -3597,25 +3602,25 @@
35973602
"chat/chatSessions": [
35983603
{
35993604
"command": "pr.openChanges",
3600-
"when": "chatSessionType == copilot-cloud-agent",
3605+
"when": "chatSessionType == copilot-cloud-agent && !config.chat.disableAIFeatures",
36013606
"group": "inline"
36023607
},
36033608
{
36043609
"command": "pr.checkoutChatSessionPullRequest",
3605-
"when": "chatSessionType == copilot-cloud-agent",
3610+
"when": "chatSessionType == copilot-cloud-agent && !config.chat.disableAIFeatures",
36063611
"group": "context"
36073612
}
36083613
],
36093614
"chat/input/editing/sessionToolbar": [
36103615
{
36113616
"command": "pr.checkoutFromDescription",
36123617
"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"
36143619
},
36153620
{
36163621
"command": "pr.applyChangesFromDescription",
36173622
"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"
36193624
}
36203625
]
36213626
},

package.nls.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"githubPullRequests.fileAutoReveal.description": "Automatically reveal open files in the pull request changes tree.",
4242
"githubPullRequests.defaultDeletionMethod.selectLocalBranch.description": "When true, the option to delete the local branch will be selected by default when deleting a branch from a pull request.",
4343
"githubPullRequests.defaultDeletionMethod.selectRemote.description": "When true, the option to delete the remote will be selected by default when deleting a branch from a pull request.",
44-
"githubPullRequests.deleteBranchAfterMerge.description": "Automatically delete the branch after merging a pull request. This setting only applies when the pull request is merged through this extension.",
44+
"githubPullRequests.deleteBranchAfterMerge.description": "Automatically delete the branch after merging a pull request. This setting only applies when the pull request is merged through this extension. When using merge queues, this will only delete the local branch.",
4545
"githubPullRequests.terminalLinksHandler.description": "Default handler for terminal links.",
4646
"githubPullRequests.terminalLinksHandler.github": "Create the pull request on GitHub.",
4747
"githubPullRequests.terminalLinksHandler.vscode": "Create the pull request in VS Code.",
@@ -274,7 +274,7 @@
274274
"command.pr.goToPreviousDiffInPr.title": "Go to Previous Diff in Pull Request",
275275
"command.pr.copyCommentLink.title": "Copy Comment Link",
276276
"command.pr.applySuggestion.title": "Apply Suggestion",
277-
"command.pr.applySuggestionWithCopilot.title": "Apply Suggestion With Copilot",
277+
"command.pr.applySuggestionWithCopilot.title": "Apply Suggestion Using AI",
278278
"command.pr.addAssigneesToNewPr.title": "Add Assignees",
279279
"command.pr.addReviewersToNewPr.title": "Add Reviewers",
280280
"command.pr.addLabelsToNewPr.title": "Apply Labels",

src/@types/vscode.proposed.chatParticipantAdditions.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ declare module 'vscode' {
171171
pastTenseMessage?: string | MarkdownString;
172172
isConfirmed?: boolean;
173173
isComplete?: boolean;
174-
toolSpecificData?: ChatTerminalToolInvocationData | ChatMcpToolInvocationData;
175-
subAgentInvocationId?: string;
174+
toolSpecificData?: ChatTerminalToolInvocationData;
175+
fromSubAgent?: boolean;
176176
presentation?: 'hidden' | 'hiddenAfterComplete' | undefined;
177177

178178
constructor(toolName: string, toolCallId: string, isError?: boolean);
@@ -244,7 +244,7 @@ declare module 'vscode' {
244244
constructor(uris: Uri[], callback: () => Thenable<unknown>);
245245
}
246246

247-
export type ExtendedChatResponsePart = ChatResponsePart | ChatResponseTextEditPart | ChatResponseNotebookEditPart | ChatResponseWorkspaceEditPart | ChatResponseConfirmationPart | ChatResponseCodeCitationPart | ChatResponseReferencePart2 | ChatResponseMovePart | ChatResponseExtensionsPart | ChatResponsePullRequestPart | ChatToolInvocationPart | ChatResponseMultiDiffPart | ChatResponseThinkingProgressPart | ChatResponseExternalEditPart;
247+
export type ExtendedChatResponsePart = ChatResponsePart | ChatResponseTextEditPart | ChatResponseNotebookEditPart | ChatResponseConfirmationPart | ChatResponseCodeCitationPart | ChatResponseReferencePart2 | ChatResponseMovePart | ChatResponseExtensionsPart | ChatResponsePullRequestPart | ChatPrepareToolInvocationPart | ChatToolInvocationPart | ChatResponseMultiDiffPart | ChatResponseThinkingProgressPart | ChatResponseExternalEditPart;
248248
export class ChatResponseWarningPart {
249249
value: MarkdownString;
250250
constructor(value: string | MarkdownString);

0 commit comments

Comments
 (0)