Skip to content

Commit 5179f85

Browse files
committed
Stops showing file menus on folders
1 parent 9779579 commit 5179f85

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2193,22 +2193,22 @@
21932193
"explorer/context": [
21942194
{
21952195
"command": "gitlens.openFileInRemote",
2196-
"when": "gitlens:enabled && gitlens:hasRemotes && config.gitlens.advanced.menus.explorerContext.remote",
2196+
"when": "!explorerResourceIsRoot && !explorerResourceIsFolder && gitlens:enabled && gitlens:hasRemotes && config.gitlens.advanced.menus.explorerContext.remote",
21972197
"group": "navigation@100"
21982198
},
21992199
{
22002200
"command": "gitlens.diffWithPrevious",
2201-
"when": "gitlens:enabled && config.gitlens.advanced.menus.explorerContext.fileDiff",
2201+
"when": "!explorerResourceIsRoot && !explorerResourceIsFolder && gitlens:enabled && config.gitlens.advanced.menus.explorerContext.fileDiff",
22022202
"group": "1_gitlens@1"
22032203
},
22042204
{
22052205
"command": "gitlens.diffWithWorking",
2206-
"when": "gitlens:enabled && config.gitlens.advanced.menus.explorerContext.fileDiff",
2206+
"when": "!explorerResourceIsRoot && !explorerResourceIsFolder && gitlens:enabled && config.gitlens.advanced.menus.explorerContext.fileDiff",
22072207
"group": "1_gitlens@2"
22082208
},
22092209
{
22102210
"command": "gitlens.showQuickFileHistory",
2211-
"when": "gitlens:enabled && config.gitlens.advanced.menus.explorerContext.history",
2211+
"when": "!explorerResourceIsRoot && !explorerResourceIsFolder && gitlens:enabled && config.gitlens.advanced.menus.explorerContext.history",
22122212
"group": "1_gitlens_1@1"
22132213
}
22142214
],

0 commit comments

Comments
 (0)