Skip to content

Commit 9bbe42d

Browse files
committed
Ensures commands don't show up when not enabled
1 parent 71f14d2 commit 9bbe42d

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

contributions.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3463,7 +3463,7 @@
34633463
},
34643464
"gitlens.graph.soloBranch": {
34653465
"label": "Solo Branch",
3466-
"commandPalette": true,
3466+
"commandPalette": "gitlens:enabled",
34673467
"menus": {
34683468
"webview/context": [
34693469
{
@@ -3476,7 +3476,7 @@
34763476
},
34773477
"gitlens.graph.soloBranch:views": {
34783478
"label": "Solo Branch in Commit Graph",
3479-
"commandPalette": true,
3479+
"commandPalette": "gitlens:enabled",
34803480
"menus": {
34813481
"view/item/context": [
34823482
{
@@ -3489,7 +3489,7 @@
34893489
},
34903490
"gitlens.graph.soloTag": {
34913491
"label": "Solo Tag",
3492-
"commandPalette": true,
3492+
"commandPalette": "gitlens:enabled",
34933493
"menus": {
34943494
"webview/context": [
34953495
{
@@ -3502,7 +3502,7 @@
35023502
},
35033503
"gitlens.graph.soloTag:views": {
35043504
"label": "Solo Tag in Commit Graph",
3505-
"commandPalette": true,
3505+
"commandPalette": "gitlens:enabled",
35063506
"menus": {
35073507
"view/item/context": [
35083508
{

package.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12628,6 +12628,22 @@
1262812628
"command": "gitlens.graph.showInDetailsView",
1262912629
"when": "false"
1263012630
},
12631+
{
12632+
"command": "gitlens.graph.soloBranch",
12633+
"when": "gitlens:enabled"
12634+
},
12635+
{
12636+
"command": "gitlens.graph.soloBranch:views",
12637+
"when": "gitlens:enabled"
12638+
},
12639+
{
12640+
"command": "gitlens.graph.soloTag",
12641+
"when": "gitlens:enabled"
12642+
},
12643+
{
12644+
"command": "gitlens.graph.soloTag:views",
12645+
"when": "gitlens:enabled"
12646+
},
1263112647
{
1263212648
"command": "gitlens.graph.split",
1263312649
"when": "gitlens:enabled && config.gitlens.graph.allowMultiple"

0 commit comments

Comments
 (0)