Adds experimental commands for Open in GitHub

This commit is contained in:
Eric Amodio
2017-03-24 03:00:18 -04:00
parent 4f84c03275
commit 4d1cfd6413
8 changed files with 178 additions and 33 deletions

View File

@@ -354,7 +354,7 @@
"gitlens.experimental.openInHostingProvider": {
"type": "boolean",
"default": false,
"description": "(experimental) Specifies whether or not to show Open X in Hosting Provider commands in quick picks"
"description": "(experimental) Specifies whether or not to show Open X in Hosting Provider commands in relevant quick picks"
}
}
},
@@ -477,6 +477,16 @@
"command": "gitlens.openChangedFiles",
"title": "Open Changed Files",
"category": "GitLens"
},
{
"command": "gitlens.openCommitInHostingProvider",
"title": "Open Line Commit in Hosting Provider",
"category": "GitLens"
},
{
"command": "gitlens.openFileInHostingProvider",
"title": "Open File in Hosting Provider",
"category": "GitLens"
}
],
"menus": {
@@ -572,6 +582,14 @@
{
"command": "gitlens.openChangedFiles",
"when": "gitlens:enabled"
},
{
"command": "gitlens.openCommitInHostingProvider",
"when": "editorTextFocus && gitlens:enabled && gitlens:isBlameable && config.gitlens.experimental.openInHostingProvider"
},
{
"command": "gitlens.openFileInHostingProvider",
"when": "editorTextFocus && gitlens:enabled && config.gitlens.experimental.openInHostingProvider"
}
],
"explorer/context": [