Skip to content

Commit 835044c

Browse files
committed
Merge branch 'main' into copilot/add-change-base-branch-button
2 parents 9566860 + 84e03ea commit 835044c

71 files changed

Lines changed: 3681 additions & 1540 deletions

Some content is hidden

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

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: 116 additions & 13 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%"
@@ -476,13 +492,17 @@
476492
"type": "string",
477493
"enum": [
478494
"checkoutDefaultBranch",
479-
"checkoutDefaultBranchAndPull"
495+
"checkoutDefaultBranchAndPull",
496+
"checkoutPullRequestBaseBranch",
497+
"checkoutPullRequestBaseBranchAndPull"
480498
],
481499
"description": "%githubPullRequests.postDone.description%",
482500
"default": "checkoutDefaultBranch",
483501
"enumDescriptions": [
484502
"%githubPullRequests.postDone.checkoutDefaultBranch%",
485-
"%githubPullRequests.postDone.checkoutDefaultBranchAndPull%"
503+
"%githubPullRequests.postDone.checkoutDefaultBranchAndPull%",
504+
"%githubPullRequests.postDone.checkoutPullRequestBaseBranch%",
505+
"%githubPullRequests.postDone.checkoutPullRequestBaseBranchAndPull%"
486506
]
487507
},
488508
"githubPullRequests.defaultCommentType": {
@@ -612,6 +632,11 @@
612632
"markdownDescription": "%githubPullRequests.webviewRefreshInterval.description%",
613633
"default": 60
614634
},
635+
"githubPullRequests.devMode": {
636+
"type": "boolean",
637+
"markdownDescription": "%githubPullRequests.devMode.description%",
638+
"default": false
639+
},
615640
"githubIssues.ignoreMilestones": {
616641
"type": "array",
617642
"default": [],
@@ -711,6 +736,21 @@
711736
"default": "on",
712737
"markdownDescription": "%githubIssues.useBranchForIssues.markdownDescription%"
713738
},
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+
},
714754
"githubIssues.issueCompletionFormatScm": {
715755
"type": "string",
716756
"default": "${issueTitle}\nFixes ${issueNumberLabel}",
@@ -971,6 +1011,12 @@
9711011
"category": "%command.pull.request.category%",
9721012
"icon": "$(globe)"
9731013
},
1014+
{
1015+
"command": "pr.pickOnCodespaces",
1016+
"title": "%command.pr.pickOnCodespaces.title%",
1017+
"category": "%command.pull.request.category%",
1018+
"icon": "$(cloud)"
1019+
},
9741020
{
9751021
"command": "pr.exit",
9761022
"title": "%command.pr.exit.title%",
@@ -1033,6 +1079,11 @@
10331079
"title": "%command.pr.openFileOnGitHub.title%",
10341080
"category": "%command.pull.request.category%"
10351081
},
1082+
{
1083+
"command": "pr.revealFileInOS",
1084+
"title": "%command.pr.revealFileInOS.title%",
1085+
"category": "%command.pull.request.category%"
1086+
},
10361087
{
10371088
"command": "pr.copyCommitHash",
10381089
"title": "%command.pr.copyCommitHash.title%",
@@ -1417,6 +1468,11 @@
14171468
"title": "%command.pr.checkoutOnVscodeDevFromDescription.title%",
14181469
"category": "%command.pull.request.category%"
14191470
},
1471+
{
1472+
"command": "pr.checkoutOnCodespacesFromDescription",
1473+
"title": "%command.pr.checkoutOnCodespacesFromDescription.title%",
1474+
"category": "%command.pull.request.category%"
1475+
},
14201476
{
14211477
"command": "pr.openSessionLogFromDescription",
14221478
"title": "%command.pr.openSessionLogFromDescription.title%",
@@ -1538,6 +1594,12 @@
15381594
"title": "%command.issue.openDescription.title%",
15391595
"category": "%command.issues.category%"
15401596
},
1597+
{
1598+
"command": "issue.openIssueOnGitHub",
1599+
"title": "%command.issue.openIssueOnGitHub.title%",
1600+
"category": "%command.issues.category%",
1601+
"icon": "$(globe)"
1602+
},
15411603
{
15421604
"command": "issue.createIssueFromSelection",
15431605
"title": "%command.issue.createIssueFromSelection.title%",
@@ -2014,6 +2076,12 @@
20142076
"mac": "cmd+k m",
20152077
"command": "pr.makeSuggestion",
20162078
"when": "commentEditorFocused"
2079+
},
2080+
{
2081+
"key": "ctrl+r",
2082+
"mac": "cmd+r",
2083+
"command": "pr.refreshDescription",
2084+
"when": "activeWebviewPanelId == 'PullRequestOverview'"
20172085
}
20182086
],
20192087
"menus": {
@@ -2050,6 +2118,10 @@
20502118
"command": "pr.pickOnVscodeDev",
20512119
"when": "false"
20522120
},
2121+
{
2122+
"command": "pr.pickOnCodespaces",
2123+
"when": "false"
2124+
},
20532125
{
20542126
"command": "pr.exit",
20552127
"when": "github:inReviewMode"
@@ -2118,6 +2190,10 @@
21182190
"command": "pr.openFileOnGitHub",
21192191
"when": "false"
21202192
},
2193+
{
2194+
"command": "pr.revealFileInOS",
2195+
"when": "false"
2196+
},
21212197
{
21222198
"command": "pr.openOriginalFile",
21232199
"when": "false"
@@ -2849,6 +2925,11 @@
28492925
"when": "view == pr:github && viewItem =~ /pullrequest(:local)?:nonactive/ && (!isWeb || remoteName != codespaces && virtualWorkspace != vscode-vfs)",
28502926
"group": "1_pullrequest@2"
28512927
},
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+
},
28522933
{
28532934
"command": "pr.openChanges",
28542935
"when": "view =~ /(pr|prStatus):github/ && viewItem =~ /(pullrequest|description)/ && config.multiDiffEditor.experimental.enabled",
@@ -2963,15 +3044,20 @@
29633044
"when": "view =~ /(pr|prStatus):github/ && viewItem =~ /filechange/",
29643045
"group": "0_open@0"
29653046
},
3047+
{
3048+
"command": "pr.revealFileInOS",
3049+
"when": "view =~ /(pr|prStatus):github/ && viewItem =~ /filechange(?!:ADD)/",
3050+
"group": "0_open@1"
3051+
},
29663052
{
29673053
"command": "pr.openOriginalFile",
29683054
"when": "view =~ /(pr|prStatus):github/ && viewItem =~ /filechange:MODIFY/",
2969-
"group": "0_open@1"
3055+
"group": "0_open@2"
29703056
},
29713057
{
29723058
"command": "pr.openModifiedFile",
29733059
"when": "view =~ /(pr|prStatus):github/ && viewItem =~ /filechange:MODIFY/",
2974-
"group": "0_open@2"
3060+
"group": "0_open@3"
29753061
},
29763062
{
29773063
"command": "review.diffWithPrHead",
@@ -3602,6 +3688,11 @@
36023688
"group": "checkout@1",
36033689
"when": "webviewId == PullRequestOverview && github:checkoutMenu"
36043690
},
3691+
{
3692+
"command": "pr.checkoutOnCodespacesFromDescription",
3693+
"group": "checkout@2",
3694+
"when": "webviewId == PullRequestOverview && github:checkoutMenu"
3695+
},
36053696
{
36063697
"command": "pr.openSessionLogFromDescription",
36073698
"when": "webviewId == PullRequestOverview && github:codingAgentMenu"
@@ -3632,11 +3723,11 @@
36323723
"chat/multiDiff/context": [
36333724
{
36343725
"command": "pr.checkoutFromDescription",
3635-
"when": "chatSessionType == copilot-cloud-agent"
3726+
"when": "chatSessionType == copilot-cloud-agent && workspaceFolderCount > 0"
36363727
},
36373728
{
36383729
"command": "pr.applyChangesFromDescription",
3639-
"when": "chatSessionType == copilot-cloud-agent"
3730+
"when": "chatSessionType == copilot-cloud-agent && workspaceFolderCount > 0"
36403731
}
36413732
]
36423733
},
@@ -3671,6 +3762,16 @@
36713762
},
36723763
"description": "The color used for indicating that an issue is closed."
36733764
},
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+
},
36743775
{
36753776
"id": "pullRequests.merged",
36763777
"defaults": {
@@ -4351,6 +4452,7 @@
43514452
"@shikijs/monaco": "^3.7.0",
43524453
"@types/chai": "^4.1.4",
43534454
"@types/glob": "7.1.3",
4455+
"@types/js-yaml": "^4.0.9",
43544456
"@types/lru-cache": "^5.1.0",
43554457
"@types/marked": "^0.7.2",
43564458
"@types/mocha": "^8.2.2",
@@ -4432,6 +4534,7 @@
44324534
"debounce": "^1.2.1",
44334535
"events": "3.2.0",
44344536
"fast-deep-equal": "^3.1.3",
4537+
"js-yaml": "^4.1.1",
44354538
"jsonc-parser": "^3.3.1",
44364539
"jszip": "^3.10.1",
44374540
"lru-cache": "6.0.0",
@@ -4452,4 +4555,4 @@
44524555
"string_decoder": "^1.3.0"
44534556
},
44544557
"license": "MIT"
4455-
}
4558+
}

0 commit comments

Comments
 (0)