Skip to content

Commit 784b4f9

Browse files
committed
Fixes some command palette contributions
1 parent a5979c6 commit 784b4f9

File tree

3 files changed

+7
-17
lines changed

3 files changed

+7
-17
lines changed

contributions.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3370,7 +3370,7 @@
33703370
},
33713371
"gitlens.plus.logout": {
33723372
"label": "Sign Out of GitKraken",
3373-
"commandPalette": "true"
3373+
"commandPalette": true
33743374
},
33753375
"gitlens.plus.manage": {
33763376
"label": "Manage Your Account...",
@@ -3589,7 +3589,8 @@
35893589
}
35903590
},
35913591
"gitlens.showAccountView": {
3592-
"label": "Show Account on Home"
3592+
"label": "Show Account on Home",
3593+
"commandPalette": true
35933594
},
35943595
"gitlens.showBranchesView": {
35953596
"label": "Show Branches View",
@@ -3724,7 +3725,7 @@
37243725
},
37253726
"gitlens.showHomeView": {
37263727
"label": "Show Home View",
3727-
"commandPalette": "gitlens:enabled"
3728+
"commandPalette": true
37283729
},
37293730
"gitlens.showInCommitGraph": {
37303731
"label": "Open in Commit Graph",

package.json

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7104,7 +7104,8 @@
71047104
},
71057105
{
71067106
"command": "gitlens.showAccountView",
7107-
"title": "Show Account on Home"
7107+
"title": "Show Account on Home",
7108+
"category": "GitLens"
71087109
},
71097110
{
71107111
"command": "gitlens.showBranchesView",
@@ -10805,10 +10806,6 @@
1080510806
"command": "gitlens.plus.login",
1080610807
"when": "!gitlens:plus"
1080710808
},
10808-
{
10809-
"command": "gitlens.plus.logout",
10810-
"when": "true"
10811-
},
1081210809
{
1081310810
"command": "gitlens.plus.manage",
1081410811
"when": "gitlens:plus"
@@ -10865,10 +10862,6 @@
1086510862
"command": "gitlens.shareAsCloudPatch",
1086610863
"when": "gitlens:enabled && gitlens:gk:organization:drafts:enabled && config.gitlens.cloudPatches.enabled"
1086710864
},
10868-
{
10869-
"command": "gitlens.showAccountView",
10870-
"when": "false"
10871-
},
1087210865
{
1087310866
"command": "gitlens.showBranchesView",
1087410867
"when": "gitlens:enabled"
@@ -10921,10 +10914,6 @@
1092110914
"command": "gitlens.showGraphView",
1092210915
"when": "gitlens:enabled"
1092310916
},
10924-
{
10925-
"command": "gitlens.showHomeView",
10926-
"when": "gitlens:enabled"
10927-
},
1092810917
{
1092910918
"command": "gitlens.showInCommitGraph",
1093010919
"when": "false"

scripts/contributions/contributionsBuilder.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export class ContributesBuilder {
127127
// Handle command menu locations
128128
for (const command of Object.values(this.commands).flat()) {
129129
// Handle command palette
130-
if (command.commandPalette !== true) {
130+
if (command.commandPalette !== true && command.commandPalette !== 'true') {
131131
result.commandPalette ??= [];
132132
result.commandPalette.push({
133133
command: command.id,

0 commit comments

Comments
 (0)