merge git.open* commands

This commit is contained in:
Joao Moreno
2017-04-24 11:47:03 +02:00
parent d79d621bd7
commit a199b2aa53
2 changed files with 33 additions and 49 deletions

View File

@@ -63,24 +63,6 @@
"dark": "resources/icons/dark/open-file.svg"
}
},
{
"command": "git.openChangeFromUri",
"title": "%command.openChange%",
"category": "Git",
"icon": {
"light": "resources/icons/light/open-change.svg",
"dark": "resources/icons/dark/open-change.svg"
}
},
{
"command": "git.openFileFromUri",
"title": "%command.openFile%",
"category": "Git",
"icon": {
"light": "resources/icons/light/open-file.svg",
"dark": "resources/icons/dark/open-file.svg"
}
},
{
"command": "git.stage",
"title": "%command.stage%",
@@ -244,20 +226,12 @@
"command": "git.refresh",
"when": "config.git.enabled && scmProvider == git && gitState == idle"
},
{
"command": "git.openChange",
"when": "false"
},
{
"command": "git.openFile",
"when": "false"
},
{
"command": "git.openChangeFromUri",
"when": "config.git.enabled && scmProvider == git && gitState == idle"
},
{
"command": "git.openFileFromUri",
"command": "git.openChange",
"when": "config.git.enabled && scmProvider == git && gitState == idle"
},
{
@@ -550,12 +524,12 @@
],
"editor/title": [
{
"command": "git.openFileFromUri",
"command": "git.openFile",
"group": "navigation",
"when": "config.git.enabled && scmProvider == git && isInDiffEditor && resourceScheme != extension"
},
{
"command": "git.openChangeFromUri",
"command": "git.openChange",
"group": "navigation",
"when": "config.git.enabled && scmProvider == git && !isInDiffEditor && resourceScheme != extension"
}