streamline scm menus

This commit is contained in:
Joao Moreno
2016-12-05 18:44:12 +01:00
parent e6a46dc9e4
commit 9d6ec2dc56
7 changed files with 73 additions and 107 deletions

View File

@@ -73,46 +73,51 @@
}
],
"menus": {
"scm/git/title": [
"scm/title": [
{
"command": "git.refresh",
"group": "navigation"
"group": "navigation",
"when": "scmProvider == git"
}
],
"scm/git/index/title/context": [
"scm/resourceGroup/context": [
{
"command": "git.unstage-all"
"command": "git.unstage-all",
"when": "scmProvider == git && scmResourceGroup == index"
},
{
"command": "git.unstage-all",
"group": "inline"
}
],
"scm/git/index/context": [
{
"command": "git.unstage"
},
{
"command": "git.unstage",
"group": "inline"
}
],
"scm/git/workingTree/title/context": [
{
"command": "git.stage-all"
"group": "inline",
"when": "scmProvider == git && scmResourceGroup == index"
},
{
"command": "git.stage-all",
"group": "inline"
"when": "scmProvider == git && scmResourceGroup == workingTree"
},
{
"command": "git.stage-all",
"group": "inline",
"when": "scmProvider == git && scmResourceGroup == workingTree"
}
],
"scm/git/workingTree/context": [
"scm/resource/context": [
{
"command": "git.stage"
"command": "git.unstage",
"when": "scmProvider == git && scmResourceGroup == index"
},
{
"command": "git.unstage",
"group": "inline",
"when": "scmProvider == git && scmResourceGroup == index"
},
{
"command": "git.stage",
"group": "inline"
"when": "scmProvider == git && scmResourceGroup == workingTree"
},
{
"command": "git.stage",
"group": "inline",
"when": "scmProvider == git && scmResourceGroup == workingTree"
}
]
},