fix(git): 🐛 git api commands should be registered as contributions

Closes: #111658
This commit is contained in:
João Moreno 2021-11-09 13:24:28 +01:00
parent ace51630a9
commit 5dfa71a9e8
No known key found for this signature in database
GPG key ID: 896B853774D1A575
3 changed files with 32 additions and 1 deletions

View file

@ -85,6 +85,7 @@
"grid",
"splitview",
"table",
"list"
"list",
"git"
]
}

View file

@ -515,6 +515,21 @@
"command": "git.rebaseAbort",
"title": "%command.rebaseAbort%",
"category": "Git"
},
{
"command": "git.api.getRepositories",
"title": "%command.api.getRepositories%",
"category": "Git API"
},
{
"command": "git.api.getRepositoryState",
"title": "%command.api.getRepositoryState%",
"category": "Git API"
},
{
"command": "git.api.getRemoteSources",
"title": "%command.api.getRemoteSources%",
"category": "Git API"
}
],
"keybindings": [
@ -898,6 +913,18 @@
{
"command": "git.timeline.compareWithSelected",
"when": "false"
},
{
"command": "git.api.getRepositories",
"when": "false"
},
{
"command": "git.api.getRepositoryState",
"when": "false"
},
{
"command": "git.api.getRemoteSources",
"when": "false"
}
],
"scm/title": [

View file

@ -92,6 +92,9 @@
"command.timelineCopyCommitMessage": "Copy Commit Message",
"command.timelineSelectForCompare": "Select for Compare",
"command.timelineCompareWithSelected": "Compare with Selected",
"command.api.getRepositories": "Get Repositories",
"command.api.getRepositoryState": "Get Repository State",
"command.api.getRemoteSources": "Get Remote Sources",
"config.enabled": "Whether git is enabled.",
"config.path": "Path and filename of the git executable, e.g. `C:\\Program Files\\Git\\bin\\git.exe` (Windows). This can also be an array of string values containing multiple paths to look up.",
"config.autoRepositoryDetection": "Configures when repositories should be automatically detected.",