git: editor actions

This commit is contained in:
Joao Moreno
2017-02-09 18:24:08 +01:00
parent cce41b4869
commit f2f937cf54
7 changed files with 63 additions and 22 deletions

View File

@@ -33,12 +33,20 @@
{
"command": "git.openChange",
"title": "%command.openChange%",
"category": "Git"
"category": "Git",
"icon": {
"light": "resources/icons/light/open-change.svg",
"dark": "resources/icons/dark/open-change.svg"
}
},
{
"command": "git.openFile",
"title": "%command.openFile%",
"category": "Git"
"category": "Git",
"icon": {
"light": "resources/icons/light/open-file.svg",
"dark": "resources/icons/dark/open-file.svg"
}
},
{
"command": "git.stage",
@@ -368,6 +376,18 @@
"when": "scmProvider == git && scmResourceGroup == workingTree",
"group": "inline"
}
],
"editor/title": [
{
"command": "git.openFile",
"group": "navigation",
"when": "isInDiffEditor"
},
{
"command": "git.openChange",
"group": "navigation",
"when": "!isInDiffEditor"
}
]
},
"configuration": {