Skip to content

Commit ecf4a5e

Browse files
committed
Merge branch 'main' into copilot/add-postdone-options
2 parents c2cc6c1 + cc737a6 commit ecf4a5e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+4044
-1957
lines changed

CHANGELOG.md

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

3+
## 0.124.1
4+
5+
### Fixes
6+
7+
- Want links to repo from recent agent sessions in empty workspace. https://github.com/microsoft/vscode/issues/281345
8+
39
## 0.124.0
410

511
### Changes

common/views.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ export interface CreateParamsNew {
130130

131131
creating: boolean;
132132
reviewing: boolean;
133+
usingTemplate: boolean;
133134
}
134135

135136
export interface ChooseRemoteAndBranchArgs {
@@ -165,6 +166,10 @@ export interface TitleAndDescriptionResult {
165166
description: string | undefined;
166167
}
167168

169+
export interface DescriptionResult {
170+
description: string | undefined;
171+
}
172+
168173
export interface CloseResult {
169174
state: GithubItemStateEnum;
170175
commentEvent?: CommentEvent;

package.json

Lines changed: 110 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"treeItemMarkdownLabel",
4141
"treeViewMarkdownMessage"
4242
],
43-
"version": "0.122.0",
43+
"version": "0.124.0",
4444
"publisher": "GitHub",
4545
"engines": {
4646
"vscode": "^1.107.0"
@@ -146,12 +146,14 @@
146146
"enum": [
147147
"template",
148148
"commit",
149+
"branchName",
149150
"none",
150151
"Copilot"
151152
],
152153
"enumDescriptions": [
153154
"%githubPullRequests.pullRequestDescription.template%",
154155
"%githubPullRequests.pullRequestDescription.commit%",
156+
"%githubPullRequests.pullRequestDescription.branchName%",
155157
"%githubPullRequests.pullRequestDescription.none%",
156158
"%githubPullRequests.pullRequestDescription.copilot%"
157159
],
@@ -243,7 +245,7 @@
243245
"default": [
244246
{
245247
"label": "%githubPullRequests.queries.copilotOnMyBehalf%",
246-
"query": "repo:${owner}/${repository} is:open author:copilot involves:${user}"
248+
"query": "repo:${owner}/${repository} is:open author:copilot assignee:${user}"
247249
},
248250
{
249251
"label": "Local Pull Request Branches",
@@ -311,6 +313,11 @@
311313
"default": false,
312314
"description": "%githubPullRequests.hideViewedFiles.description%"
313315
},
316+
"githubPullRequests.fileAutoReveal": {
317+
"type": "boolean",
318+
"default": true,
319+
"description": "%githubPullRequests.fileAutoReveal.description%"
320+
},
314321
"githubPullRequests.defaultDeletionMethod.selectLocalBranch": {
315322
"type": "boolean",
316323
"default": true,
@@ -321,6 +328,11 @@
321328
"default": true,
322329
"description": "%githubPullRequests.defaultDeletionMethod.selectRemote.description%"
323330
},
331+
"githubPullRequests.deleteBranchAfterMerge": {
332+
"type": "boolean",
333+
"default": false,
334+
"description": "%githubPullRequests.deleteBranchAfterMerge.description%"
335+
},
324336
"githubPullRequests.terminalLinksHandler": {
325337
"type": "string",
326338
"enum": [
@@ -340,11 +352,13 @@
340352
"type": "string",
341353
"enum": [
342354
"never",
343-
"ask"
355+
"ask",
356+
"always"
344357
],
345358
"enumDescriptions": [
346359
"%githubPullRequests.createOnPublishBranch.never%",
347-
"%githubPullRequests.createOnPublishBranch.ask%"
360+
"%githubPullRequests.createOnPublishBranch.ask%",
361+
"%githubPullRequests.createOnPublishBranch.always%"
348362
],
349363
"default": "ask",
350364
"description": "%githubPullRequests.createOnPublishBranch.description%"
@@ -353,11 +367,13 @@
353367
"type": "string",
354368
"enum": [
355369
"expandUnresolved",
356-
"collapseAll"
370+
"collapseAll",
371+
"collapsePreexisting"
357372
],
358373
"enumDescriptions": [
359374
"%githubPullRequests.commentExpandState.expandUnresolved%",
360-
"%githubPullRequests.commentExpandState.collapseAll%"
375+
"%githubPullRequests.commentExpandState.collapseAll%",
376+
"%githubPullRequests.commentExpandState.collapsePreexisting%"
361377
],
362378
"default": "expandUnresolved",
363379
"description": "%githubPullRequests.commentExpandState.description%"
@@ -616,6 +632,11 @@
616632
"markdownDescription": "%githubPullRequests.webviewRefreshInterval.description%",
617633
"default": 60
618634
},
635+
"githubPullRequests.devMode": {
636+
"type": "boolean",
637+
"markdownDescription": "%githubPullRequests.devMode.description%",
638+
"default": false
639+
},
619640
"githubIssues.ignoreMilestones": {
620641
"type": "array",
621642
"default": [],
@@ -715,6 +736,21 @@
715736
"default": "on",
716737
"markdownDescription": "%githubIssues.useBranchForIssues.markdownDescription%"
717738
},
739+
"githubIssues.workingBaseBranch": {
740+
"type": "string",
741+
"enum": [
742+
"currentBranch",
743+
"defaultBranch",
744+
"prompt"
745+
],
746+
"enumDescriptions": [
747+
"%githubIssues.workingBaseBranch.currentBranch%",
748+
"%githubIssues.workingBaseBranch.defaultBranch%",
749+
"%githubIssues.workingBaseBranch.prompt%"
750+
],
751+
"default": "currentBranch",
752+
"markdownDescription": "%githubIssues.workingBaseBranch.markdownDescription%"
753+
},
718754
"githubIssues.issueCompletionFormatScm": {
719755
"type": "string",
720756
"default": "${issueTitle}\nFixes ${issueNumberLabel}",
@@ -975,6 +1011,12 @@
9751011
"category": "%command.pull.request.category%",
9761012
"icon": "$(globe)"
9771013
},
1014+
{
1015+
"command": "pr.pickOnCodespaces",
1016+
"title": "%command.pr.pickOnCodespaces.title%",
1017+
"category": "%command.pull.request.category%",
1018+
"icon": "$(cloud)"
1019+
},
9781020
{
9791021
"command": "pr.exit",
9801022
"title": "%command.pr.exit.title%",
@@ -1037,6 +1079,11 @@
10371079
"title": "%command.pr.openFileOnGitHub.title%",
10381080
"category": "%command.pull.request.category%"
10391081
},
1082+
{
1083+
"command": "pr.revealFileInOS",
1084+
"title": "%command.pr.revealFileInOS.title%",
1085+
"category": "%command.pull.request.category%"
1086+
},
10401087
{
10411088
"command": "pr.copyCommitHash",
10421089
"title": "%command.pr.copyCommitHash.title%",
@@ -1421,6 +1468,11 @@
14211468
"title": "%command.pr.checkoutOnVscodeDevFromDescription.title%",
14221469
"category": "%command.pull.request.category%"
14231470
},
1471+
{
1472+
"command": "pr.checkoutOnCodespacesFromDescription",
1473+
"title": "%command.pr.checkoutOnCodespacesFromDescription.title%",
1474+
"category": "%command.pull.request.category%"
1475+
},
14241476
{
14251477
"command": "pr.openSessionLogFromDescription",
14261478
"title": "%command.pr.openSessionLogFromDescription.title%",
@@ -1542,6 +1594,12 @@
15421594
"title": "%command.issue.openDescription.title%",
15431595
"category": "%command.issues.category%"
15441596
},
1597+
{
1598+
"command": "issue.openIssueOnGitHub",
1599+
"title": "%command.issue.openIssueOnGitHub.title%",
1600+
"category": "%command.issues.category%",
1601+
"icon": "$(globe)"
1602+
},
15451603
{
15461604
"command": "issue.createIssueFromSelection",
15471605
"title": "%command.issue.createIssueFromSelection.title%",
@@ -2018,6 +2076,12 @@
20182076
"mac": "cmd+k m",
20192077
"command": "pr.makeSuggestion",
20202078
"when": "commentEditorFocused"
2079+
},
2080+
{
2081+
"key": "ctrl+r",
2082+
"mac": "cmd+r",
2083+
"command": "pr.refreshDescription",
2084+
"when": "activeWebviewPanelId == 'PullRequestOverview'"
20212085
}
20222086
],
20232087
"menus": {
@@ -2054,6 +2118,10 @@
20542118
"command": "pr.pickOnVscodeDev",
20552119
"when": "false"
20562120
},
2121+
{
2122+
"command": "pr.pickOnCodespaces",
2123+
"when": "false"
2124+
},
20572125
{
20582126
"command": "pr.exit",
20592127
"when": "github:inReviewMode"
@@ -2122,6 +2190,10 @@
21222190
"command": "pr.openFileOnGitHub",
21232191
"when": "false"
21242192
},
2193+
{
2194+
"command": "pr.revealFileInOS",
2195+
"when": "false"
2196+
},
21252197
{
21262198
"command": "pr.openOriginalFile",
21272199
"when": "false"
@@ -2853,6 +2925,11 @@
28532925
"when": "view == pr:github && viewItem =~ /pullrequest(:local)?:nonactive/ && (!isWeb || remoteName != codespaces && virtualWorkspace != vscode-vfs)",
28542926
"group": "1_pullrequest@2"
28552927
},
2928+
{
2929+
"command": "pr.pickOnCodespaces",
2930+
"when": "view == pr:github && viewItem =~ /pullrequest(:local)?:nonactive/ && (!isWeb || remoteName != codespaces && virtualWorkspace != vscode-vfs)",
2931+
"group": "1_pullrequest@3"
2932+
},
28562933
{
28572934
"command": "pr.openChanges",
28582935
"when": "view =~ /(pr|prStatus):github/ && viewItem =~ /(pullrequest|description)/ && config.multiDiffEditor.experimental.enabled",
@@ -2967,15 +3044,20 @@
29673044
"when": "view =~ /(pr|prStatus):github/ && viewItem =~ /filechange/",
29683045
"group": "0_open@0"
29693046
},
3047+
{
3048+
"command": "pr.revealFileInOS",
3049+
"when": "view =~ /(pr|prStatus):github/ && viewItem =~ /filechange(?!:ADD)/",
3050+
"group": "0_open@1"
3051+
},
29703052
{
29713053
"command": "pr.openOriginalFile",
29723054
"when": "view =~ /(pr|prStatus):github/ && viewItem =~ /filechange:MODIFY/",
2973-
"group": "0_open@1"
3055+
"group": "0_open@2"
29743056
},
29753057
{
29763058
"command": "pr.openModifiedFile",
29773059
"when": "view =~ /(pr|prStatus):github/ && viewItem =~ /filechange:MODIFY/",
2978-
"group": "0_open@2"
3060+
"group": "0_open@3"
29793061
},
29803062
{
29813063
"command": "review.diffWithPrHead",
@@ -3606,6 +3688,11 @@
36063688
"group": "checkout@1",
36073689
"when": "webviewId == PullRequestOverview && github:checkoutMenu"
36083690
},
3691+
{
3692+
"command": "pr.checkoutOnCodespacesFromDescription",
3693+
"group": "checkout@2",
3694+
"when": "webviewId == PullRequestOverview && github:checkoutMenu"
3695+
},
36093696
{
36103697
"command": "pr.openSessionLogFromDescription",
36113698
"when": "webviewId == PullRequestOverview && github:codingAgentMenu"
@@ -3636,11 +3723,11 @@
36363723
"chat/multiDiff/context": [
36373724
{
36383725
"command": "pr.checkoutFromDescription",
3639-
"when": "chatSessionType == copilot-cloud-agent"
3726+
"when": "chatSessionType == copilot-cloud-agent && workspaceFolderCount > 0"
36403727
},
36413728
{
36423729
"command": "pr.applyChangesFromDescription",
3643-
"when": "chatSessionType == copilot-cloud-agent"
3730+
"when": "chatSessionType == copilot-cloud-agent && workspaceFolderCount > 0"
36443731
}
36453732
]
36463733
},
@@ -3675,6 +3762,16 @@
36753762
},
36763763
"description": "The color used for indicating that an issue is closed."
36773764
},
3765+
{
3766+
"id": "github.issues.closed",
3767+
"defaults": {
3768+
"dark": "pullRequests.merged",
3769+
"light": "pullRequests.merged",
3770+
"highContrast": "editor.foreground",
3771+
"highContrastLight": "editor.foreground"
3772+
},
3773+
"description": "The color used for indicating that an issue is closed. Duplicates issues.closed because there's another extension that uses this identifier."
3774+
},
36783775
{
36793776
"id": "pullRequests.merged",
36803777
"defaults": {
@@ -4355,6 +4452,7 @@
43554452
"@shikijs/monaco": "^3.7.0",
43564453
"@types/chai": "^4.1.4",
43574454
"@types/glob": "7.1.3",
4455+
"@types/js-yaml": "^4.0.9",
43584456
"@types/lru-cache": "^5.1.0",
43594457
"@types/marked": "^0.7.2",
43604458
"@types/mocha": "^8.2.2",
@@ -4436,6 +4534,7 @@
44364534
"debounce": "^1.2.1",
44374535
"events": "3.2.0",
44384536
"fast-deep-equal": "^3.1.3",
4537+
"js-yaml": "^4.1.1",
44394538
"jsonc-parser": "^3.3.1",
44404539
"jszip": "^3.10.1",
44414540
"lru-cache": "6.0.0",
@@ -4456,4 +4555,4 @@
44564555
"string_decoder": "^1.3.0"
44574556
},
44584557
"license": "MIT"
4459-
}
4558+
}

0 commit comments

Comments
 (0)