From 566325170863f5acd2d9ba04c34a855e1bff44d8 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Sun, 24 Jan 2021 16:32:47 -0500 Subject: [PATCH] Adds new icon for create pull request --- images/dark/icon-create-pull-request.svg | 5 +++++ images/light/icon-create-pull-request.svg | 5 +++++ package.json | 29 ++++++++++++++++------------- 3 files changed, 26 insertions(+), 13 deletions(-) create mode 100644 images/dark/icon-create-pull-request.svg create mode 100644 images/light/icon-create-pull-request.svg diff --git a/images/dark/icon-create-pull-request.svg b/images/dark/icon-create-pull-request.svg new file mode 100644 index 0000000..d5d9697 --- /dev/null +++ b/images/dark/icon-create-pull-request.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/images/light/icon-create-pull-request.svg b/images/light/icon-create-pull-request.svg new file mode 100644 index 0000000..5b9b60a --- /dev/null +++ b/images/light/icon-create-pull-request.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/package.json b/package.json index 451efa4..7807159 100644 --- a/package.json +++ b/package.json @@ -3993,9 +3993,12 @@ }, { "command": "gitlens.views.createPullRequest", - "title": "Create Pull Request", + "title": "Create Pull Request...", "category": "GitLens", - "icon": "$(git-pull-request)" + "icon": { + "dark": "images/dark/icon-create-pull-request.svg", + "light": "images/light/icon-create-pull-request.svg" + } }, { "command": "gitlens.views.openPullRequest", @@ -7196,24 +7199,29 @@ "group": "1_gitlens_actions@4" }, { - "command": "gitlens.views.deleteBranch", - "when": "!gitlens:readonly && viewItem =~ /gitlens:branch\\b(?!.*?\\b\\+current\\b)/", + "command": "gitlens.views.renameBranch", + "when": "!gitlens:readonly && viewItem =~ /gitlens:branch\\b/", "group": "1_gitlens_actions@5" }, { - "command": "gitlens.views.renameBranch", - "when": "!gitlens:readonly && viewItem =~ /gitlens:branch\\b/", + "command": "gitlens.views.deleteBranch", + "when": "!gitlens:readonly && viewItem =~ /gitlens:branch\\b(?!.*?\\b\\+current\\b)/", "group": "1_gitlens_actions@6" }, { "command": "gitlens.views.createBranch", "when": "!gitlens:readonly && viewItem =~ /gitlens:branch\\b/", - "group": "1_gitlens_actions@7" + "group": "1_gitlens_actions_@7" }, { "command": "gitlens.views.createTag", "when": "!gitlens:readonly && viewItem =~ /gitlens:branch\\b/", - "group": "1_gitlens_actions@8" + "group": "1_gitlens_actions_@8" + }, + { + "command": "gitlens.views.createPullRequest", + "when": "gitlens:action:createPullRequest && viewItem =~ /gitlens:branch\\b(?=.*?\\b\\+(tracking|remote)\\b)/", + "group": "1_gitlens_actions_@9" }, { "command": "gitlens.openBranchOnRemote", @@ -7222,11 +7230,6 @@ "alt": "gitlens.copyRemoteBranchUrl" }, { - "command": "gitlens.views.createPullRequest", - "when": "gitlens:action:createPullRequest && viewItem =~ /gitlens:branch\\b(?=.*?\\b\\+(tracking|remote)\\b)/", - "group": "2_gitlens_quickopen@2" - }, - { "command": "gitlens.views.openDirectoryDiffWithWorking", "when": "viewItem =~ /gitlens:(branch|tag)\\b/", "group": "3_gitlens_explore@2"