Skip to content

Commit 74e02d2

Browse files
authored
Use codicons in commands
Fixes microsoft/vscode-internalbacklog#1088
1 parent b355df2 commit 74e02d2

15 files changed

+12
-98
lines changed

package.json

Lines changed: 12 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -372,19 +372,13 @@
372372
{
373373
"command": "pr.create",
374374
"title": "Create Pull Request",
375-
"icon": {
376-
"light": "resources/icons/light/stage.svg",
377-
"dark": "resources/icons/dark/stage.svg"
378-
},
375+
"icon": "$(plus)",
379376
"category": "GitHub Pull Requests"
380377
},
381378
{
382379
"command": "pr.createDraft",
383380
"title": "Create Draft Pull Request",
384-
"icon": {
385-
"light": "resources/icons/light/stage.svg",
386-
"dark": "resources/icons/dark/stage.svg"
387-
},
381+
"icon": "$(plus)",
388382
"category": "GitHub Pull Requests"
389383
},
390384
{
@@ -446,10 +440,7 @@
446440
"command": "pr.openDiffView",
447441
"title": "Open Diff View",
448442
"category": "GitHub Pull Requests",
449-
"icon": {
450-
"light": "resources/icons/light/open-change.svg",
451-
"dark": "resources/icons/dark/open-change.svg"
452-
}
443+
"icon": "$(compare-changes)"
453444
},
454445
{
455446
"command": "pr.openChangedFile",
@@ -465,10 +456,7 @@
465456
{
466457
"command": "pr.openDescriptionToTheSide",
467458
"title": "Open Pull Request Description to the Side",
468-
"icon": {
469-
"light": "resources/icons/light/split-editor-horizontal.svg",
470-
"dark": "resources/icons/dark/split-editor-horizontal-inverse.svg"
471-
}
459+
"icon": "$(split-horizontal)"
472460
},
473461
{
474462
"command": "pr.refreshDescription",
@@ -478,10 +466,7 @@
478466
{
479467
"command": "review.openFile",
480468
"title": "Open File",
481-
"icon": {
482-
"light": "resources/icons/light/open-file.svg",
483-
"dark": "resources/icons/dark/open-file.svg"
484-
}
469+
"icon": "$(go-to-file)"
485470
},
486471
{
487472
"command": "review.suggestDiff",
@@ -490,29 +475,20 @@
490475
{
491476
"command": "pr.refreshList",
492477
"title": "Refresh Pull Requests List",
493-
"icon": {
494-
"dark": "resources/icons/dark/refresh.svg",
495-
"light": "resources/icons/light/refresh.svg"
496-
},
478+
"icon": "$(refresh)",
497479
"category": "GitHub Pull Requests"
498480
},
499481
{
500482
"command": "pr.refreshChanges",
501483
"title": "Refresh",
502-
"icon": {
503-
"dark": "resources/icons/dark/refresh.svg",
504-
"light": "resources/icons/light/refresh.svg"
505-
},
484+
"icon": "$(refresh)",
506485
"category": "GitHub Pull Requests"
507486
},
508487
{
509488
"command": "pr.configurePRViewlet",
510489
"title": "Configure...",
511490
"category": "GitHub Pull Requests",
512-
"icon": {
513-
"light": "resources/icons/light/gear.svg",
514-
"dark": "resources/icons/dark/gear.svg"
515-
}
491+
"icon": "$(gear)"
516492
},
517493
{
518494
"command": "pr.deleteLocalBranch",
@@ -550,10 +526,7 @@
550526
"command": "pr.editComment",
551527
"title": "Edit Comment",
552528
"category": "GitHub Pull Requests",
553-
"icon": {
554-
"light": "resources/icons/light/edit.svg",
555-
"dark": "resources/icons/dark/edit.svg"
556-
}
529+
"icon": "$(edit)"
557530
},
558531
{
559532
"command": "pr.cancelEditComment",
@@ -570,10 +543,7 @@
570543
"command": "pr.deleteComment",
571544
"title": "Delete Comment",
572545
"category": "GitHub Pull Requests",
573-
"icon": {
574-
"light": "resources/icons/light/delete.svg",
575-
"dark": "resources/icons/dark/delete.svg"
576-
}
546+
"icon": "$(close)"
577547
},
578548
{
579549
"command": "pr.finishReview",
@@ -615,10 +585,7 @@
615585
"command": "issue.openIssue",
616586
"title": "Open Issue",
617587
"category": "GitHub Issues",
618-
"icon": {
619-
"light": "resources/icons/light/open-browser.svg",
620-
"dark": "resources/icons/dark/open-browser.svg"
621-
}
588+
"icon": "$(globe)"
622589
},
623590
{
624591
"command": "issue.copyIssueNumber",
@@ -634,10 +601,7 @@
634601
"command": "issue.refresh",
635602
"title": "Refresh",
636603
"category": "GitHub Issues",
637-
"icon": {
638-
"dark": "resources/icons/dark/refresh.svg",
639-
"light": "resources/icons/light/refresh.svg"
640-
}
604+
"icon": "$(refresh)"
641605
},
642606
{
643607
"command": "issue.suggestRefresh",

resources/icons/dark/gear.svg

Lines changed: 0 additions & 6 deletions
This file was deleted.

resources/icons/dark/open-browser.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)