Skip to content

Commit 078592a

Browse files
authored
Implement new PR header (#7380)
* Update title editing * Edit button * Copy context menu * Checkout dropdown-button * Coding agent dropdown button * Use copilot icon * Add the spinner * Hide commands from command palette and clean up small-button css * Fix branch tag alignment
1 parent b72d161 commit 078592a

24 files changed

+463
-160
lines changed

package.json

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1291,6 +1291,21 @@
12911291
"category": "%command.pull.request.category%",
12921292
"icon": "$(eye)"
12931293
},
1294+
{
1295+
"command": "pr.checkoutFromDescription",
1296+
"title": "%command.pr.checkoutFromDescription.title%",
1297+
"category": "%command.pull.request.category%"
1298+
},
1299+
{
1300+
"command": "pr.checkoutOnVscodeDevFromDescription",
1301+
"title": "%command.pr.checkoutOnVscodeDevFromDescription.title%",
1302+
"category": "%command.pull.request.category%"
1303+
},
1304+
{
1305+
"command": "pr.openSessionLogFromDescription",
1306+
"title": "%command.pr.openSessionLogFromDescription.title%",
1307+
"category": "%command.pull.request.category%"
1308+
},
12941309
{
12951310
"command": "review.diffWithPrHead",
12961311
"title": "%command.review.diffWithPrHead.title%",
@@ -1418,6 +1433,11 @@
14181433
"title": "%command.pr.copyVscodeDevPrLink.title%",
14191434
"category": "%command.issues.category%"
14201435
},
1436+
{
1437+
"command": "pr.copyPrLink",
1438+
"title": "%command.pr.copyPrLink.title%",
1439+
"category": "%command.issues.category%"
1440+
},
14211441
{
14221442
"command": "pr.refreshComments",
14231443
"title": "%command.pr.refreshComments.title%",
@@ -1953,6 +1973,18 @@
19531973
"command": "pr.toggleEditorCommentingOff",
19541974
"when": "false"
19551975
},
1976+
{
1977+
"command": "pr.checkoutFromDescription",
1978+
"when": "false"
1979+
},
1980+
{
1981+
"command": "pr.checkoutOnVscodeDevFromDescription",
1982+
"when": "false"
1983+
},
1984+
{
1985+
"command": "pr.openSessionLogFromDescription",
1986+
"when": "false"
1987+
},
19561988
{
19571989
"command": "review.suggestDiff",
19581990
"when": "false"
@@ -2113,6 +2145,10 @@
21132145
"command": "pr.copyVscodeDevPrLink",
21142146
"when": "github:inReviewMode && remoteName != codespaces && embedderIdentifier != github.dev"
21152147
},
2148+
{
2149+
"command": "pr.copyPrLink",
2150+
"when": "false"
2151+
},
21162152
{
21172153
"command": "pr.goToNextDiffInPr",
21182154
"when": "activeEditor == workbench.editors.textDiffEditor && resourcePath in github:unviewedFiles"
@@ -3273,7 +3309,30 @@
32733309
{
32743310
"command": "review.requestChangesOnDotComDescription",
32753311
"when": "webviewId == PullRequestOverview && github:reviewCommentMenu && github:reviewCommentRequestChangesOnDotCom"
3312+
},
3313+
{
3314+
"command": "pr.copyPrLink",
3315+
"when": "webviewId == PullRequestOverview && github:copyMenu"
3316+
},
3317+
{
3318+
"command": "pr.copyVscodeDevPrLink",
3319+
"when": "webviewId == PullRequestOverview && github:copyMenu"
3320+
},
3321+
{
3322+
"command": "pr.openChanges",
3323+
"group": "checkout@0",
3324+
"when": "webviewId == PullRequestOverview && github:checkoutMenu"
3325+
},
3326+
{
3327+
"command": "pr.checkoutOnVscodeDevFromDescription",
3328+
"group": "checkout@1",
3329+
"when": "webviewId == PullRequestOverview && github:checkoutMenu"
3330+
},
3331+
{
3332+
"command": "pr.openSessionLogFromDescription",
3333+
"when": "webviewId == PullRequestOverview && github:codingAgentMenu"
32763334
}
3335+
32773336
],
32783337
"chat/chatSessions": [
32793338
{

package.nls.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,8 @@
257257
"command.issues.category": "GitHub Issues",
258258
"command.issue.createIssueFromSelection.title": "Create Issue From Selection",
259259
"command.issue.createIssueFromClipboard.title": "Create Issue From Clipboard",
260-
"command.pr.copyVscodeDevPrLink.title": "Copy vscode.dev Pull Request Link",
260+
"command.pr.copyVscodeDevPrLink.title": "Copy vscode.dev Link",
261+
"command.pr.copyPrLink.title": "Copy Link",
261262
"command.pr.createPrMenuCreate.title": "Create",
262263
"command.pr.createPrMenuDraft.title": "Create Draft",
263264
"command.pr.createPrMenuSquash.title": "Create + Auto-Squash",
@@ -270,6 +271,9 @@
270271
"command.pr.closeRelatedEditors.title": "Close All Pull Request Editors",
271272
"command.pr.toggleEditorCommentingOn.title": "Toggle Editor Commenting On",
272273
"command.pr.toggleEditorCommentingOff.title": "Toggle Editor Commenting Off",
274+
"command.pr.checkoutFromDescription.title": "Checkout",
275+
"command.pr.checkoutOnVscodeDevFromDescription.title": "Checkout on vscode.dev",
276+
"command.pr.openSessionLogFromDescription.title": "View Session",
273277
"command.issue.openDescription.title": "View Issue Description",
274278
"command.issue.copyGithubDevLink.title": "Copy github.dev Link",
275279
"command.issue.copyGithubPermalink.title": "Copy GitHub Permalink",

resources/icons/copilot-error.svg

Lines changed: 4 additions & 0 deletions
Loading
Lines changed: 4 additions & 0 deletions
Loading
Lines changed: 4 additions & 0 deletions
Loading

resources/icons/loading.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)