Closes #144 - support disabling the custom view

This commit is contained in:
Eric Amodio
2017-09-17 01:43:41 -04:00
parent 26c6346b84
commit a69afdb6ef
4 changed files with 12 additions and 1 deletions

View File

@@ -423,6 +423,11 @@
"default": "${filePath}",
"description": "Specifies the format of a committed file in the `GitLens` custom view\nAvailable tokens\n ${file} - file name\n ${filePath} - file name and path\n ${path} - file path"
},
"gitlens.gitExplorer.enabled": {
"type": "boolean",
"default": true,
"description": "Specifies whether or not to show the `GitLens` custom view"
},
"gitlens.gitExplorer.showTrackingBranch": {
"type": "boolean",
"default": true,
@@ -1841,7 +1846,7 @@
{
"id": "gitlens.gitExplorer",
"name": "GitLens",
"when": "gitlens:enabled"
"when": "gitlens:enabled && config.gitlens.gitExplorer.enabled"
}
]
}