scm viewlet inline actions

This commit is contained in:
Joao Moreno
2016-12-01 16:09:14 +01:00
parent 7f8d9c9bed
commit ceafebde3e
9 changed files with 157 additions and 32 deletions

View File

@@ -38,22 +38,38 @@
{
"command": "git.stage",
"title": "Stage",
"category": "Git"
"category": "Git",
"icon": {
"light": "resources/icons/light/stage.svg",
"dark": "resources/icons/dark/stage.svg"
}
},
{
"command": "git.stage-all",
"title": "Stage All",
"category": "Git"
"category": "Git",
"icon": {
"light": "resources/icons/light/stage.svg",
"dark": "resources/icons/dark/stage.svg"
}
},
{
"command": "git.unstage",
"title": "Unstage",
"category": "Git"
"category": "Git",
"icon": {
"light": "resources/icons/light/unstage.svg",
"dark": "resources/icons/dark/unstage.svg"
}
},
{
"command": "git.unstage-all",
"title": "Unstage All",
"category": "Git"
"category": "Git",
"icon": {
"light": "resources/icons/light/unstage.svg",
"dark": "resources/icons/dark/unstage.svg"
}
}
],
"menus": {
@@ -63,24 +79,48 @@
"group": "navigation"
}
],
"scm/git/index/group": [
{
"command": "git.unstage-all",
"group": "navigation"
}
],
"scm/git/index/group/context": [
{
"command": "git.unstage-all",
"group": "navigation"
}
],
"scm/git/index/resource": [
{
"command": "git.unstage",
"group": "navigation"
}
],
"scm/git/index/resource/context": [
{
"command": "git.unstage",
"group": "navigation"
}
],
"scm/git/workingTree/group": [
{
"command": "git.stage-all",
"group": "navigation"
}
],
"scm/git/workingTree/group/context": [
{
"command": "git.stage-all",
"group": "navigation"
}
],
"scm/git/workingTree/resource": [
{
"command": "git.stage",
"group": "navigation"
}
],
"scm/git/workingTree/resource/context": [
{
"command": "git.stage",