Skip to content

Commit 9d2789f

Browse files
committed
Adds missing context menus for file history header
1 parent f233eb9 commit 9d2789f

File tree

2 files changed

+44
-4
lines changed

2 files changed

+44
-4
lines changed

contributions.json

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8212,6 +8212,11 @@
82128212
"when": "viewItem == gitlens:views:fileHistory && gitlens:views:fileHistory:canPin && gitlens:views:fileHistory:editorFollowing",
82138213
"group": "inline",
82148214
"order": 10
8215+
},
8216+
{
8217+
"when": "viewItem == gitlens:views:fileHistory && gitlens:views:fileHistory:canPin && gitlens:views:fileHistory:editorFollowing",
8218+
"group": "1_gitlens",
8219+
"order": 10
82158220
}
82168221
],
82178222
"view/title": [
@@ -8239,6 +8244,11 @@
82398244
"when": "viewItem == gitlens:views:fileHistory && !gitlens:views:fileHistory:editorFollowing",
82408245
"group": "inline",
82418246
"order": 10
8247+
},
8248+
{
8249+
"when": "viewItem == gitlens:views:fileHistory && !gitlens:views:fileHistory:editorFollowing",
8250+
"group": "1_gitlens",
8251+
"order": 10
82428252
}
82438253
],
82448254
"view/title": [
@@ -8267,6 +8277,11 @@
82678277
"when": "viewItem == gitlens:views:fileHistory && gitlens:views:fileHistory:mode == contributors",
82688278
"group": "inline",
82698279
"order": 12
8280+
},
8281+
{
8282+
"when": "viewItem == gitlens:views:fileHistory && !gitlens:views:fileHistory:cursorFollowing",
8283+
"group": "1_gitlens_1",
8284+
"order": 12
82708285
}
82718286
],
82728287
"view/title": [
@@ -8295,6 +8310,11 @@
82958310
"when": "viewItem == gitlens:views:fileHistory && gitlens:views:fileHistory:mode != contributors",
82968311
"group": "inline",
82978312
"order": 12
8313+
},
8314+
{
8315+
"when": "viewItem == gitlens:views:fileHistory && !gitlens:views:fileHistory:cursorFollowing",
8316+
"group": "1_gitlens_1",
8317+
"order": 12
82988318
}
82998319
],
83008320
"view/title": [
@@ -8372,7 +8392,7 @@
83728392
"view/item/context": [
83738393
{
83748394
"when": "viewItem == gitlens:views:fileHistory && !gitlens:views:fileHistory:cursorFollowing",
8375-
"group": "1_gitlens_1",
8395+
"group": "1_gitlens_2",
83768396
"order": 1
83778397
}
83788398
],
@@ -8399,7 +8419,7 @@
83998419
"view/item/context": [
84008420
{
84018421
"when": "viewItem == gitlens:views:fileHistory && !gitlens:views:fileHistory:cursorFollowing",
8402-
"group": "1_gitlens_1",
8422+
"group": "1_gitlens_2",
84038423
"order": 2
84048424
}
84058425
],

package.json

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18837,6 +18837,16 @@
1883718837
"when": "viewItem == gitlens:views:fileHistory",
1883818838
"group": "1_gitlens@0"
1883918839
},
18840+
{
18841+
"command": "gitlens.views.fileHistory.setEditorFollowingOff",
18842+
"when": "viewItem == gitlens:views:fileHistory && gitlens:views:fileHistory:canPin && gitlens:views:fileHistory:editorFollowing",
18843+
"group": "1_gitlens@10"
18844+
},
18845+
{
18846+
"command": "gitlens.views.fileHistory.setEditorFollowingOn",
18847+
"when": "viewItem == gitlens:views:fileHistory && !gitlens:views:fileHistory:editorFollowing",
18848+
"group": "1_gitlens@10"
18849+
},
1884018850
{
1884118851
"command": "gitlens.views.fileHistory.setCursorFollowingOff",
1884218852
"when": "viewItem == gitlens:views:fileHistory && !gitlens:hasVirtualFolders",
@@ -18847,15 +18857,25 @@
1884718857
"when": "viewItem == gitlens:views:fileHistory && !gitlens:hasVirtualFolders",
1884818858
"group": "1_gitlens_@11"
1884918859
},
18860+
{
18861+
"command": "gitlens.views.fileHistory.setModeCommits",
18862+
"when": "viewItem == gitlens:views:fileHistory && !gitlens:views:fileHistory:cursorFollowing",
18863+
"group": "1_gitlens_1@12"
18864+
},
18865+
{
18866+
"command": "gitlens.views.fileHistory.setModeContributors",
18867+
"when": "viewItem == gitlens:views:fileHistory && !gitlens:views:fileHistory:cursorFollowing",
18868+
"group": "1_gitlens_1@12"
18869+
},
1885018870
{
1885118871
"command": "gitlens.views.fileHistory.setShowAllBranchesOff",
1885218872
"when": "viewItem == gitlens:views:fileHistory && !gitlens:views:fileHistory:cursorFollowing",
18853-
"group": "1_gitlens_1@1"
18873+
"group": "1_gitlens_2@1"
1885418874
},
1885518875
{
1885618876
"command": "gitlens.views.fileHistory.setShowAllBranchesOn",
1885718877
"when": "viewItem == gitlens:views:fileHistory && !gitlens:views:fileHistory:cursorFollowing",
18858-
"group": "1_gitlens_1@2"
18878+
"group": "1_gitlens_2@2"
1885918879
},
1886018880
{
1886118881
"command": "gitlens.views.fileHistory.setRenameFollowingOff",

0 commit comments

Comments
 (0)