mirror of
https://github.com/Microsoft/vscode
synced 2024-11-05 18:29:38 +00:00
git: hide/show commands based on state
This commit is contained in:
parent
3d6b1b71c5
commit
ca27a87b05
1 changed files with 102 additions and 0 deletions
|
@ -200,6 +200,108 @@
|
|||
}
|
||||
],
|
||||
"menus": {
|
||||
"commandPalette": [
|
||||
{
|
||||
"command": "git.init",
|
||||
"when": "scmProvider == git && scmProviderState == norepo"
|
||||
},
|
||||
{
|
||||
"command": "git.refresh",
|
||||
"when": "scmProvider == git && scmProviderState == idle"
|
||||
},
|
||||
{
|
||||
"command": "git.openChange",
|
||||
"when": "scmProvider == git && scmProviderState == idle"
|
||||
},
|
||||
{
|
||||
"command": "git.openFile",
|
||||
"when": "scmProvider == git && scmProviderState == idle"
|
||||
},
|
||||
{
|
||||
"command": "git.stage",
|
||||
"when": "scmProvider == git && scmProviderState == idle"
|
||||
},
|
||||
{
|
||||
"command": "git.stageAll",
|
||||
"when": "scmProvider == git && scmProviderState == idle"
|
||||
},
|
||||
{
|
||||
"command": "git.unstage",
|
||||
"when": "scmProvider == git && scmProviderState == idle"
|
||||
},
|
||||
{
|
||||
"command": "git.unstageAll",
|
||||
"when": "scmProvider == git && scmProviderState == idle"
|
||||
},
|
||||
{
|
||||
"command": "git.clean",
|
||||
"when": "scmProvider == git && scmProviderState == idle"
|
||||
},
|
||||
{
|
||||
"command": "git.cleanAll",
|
||||
"when": "scmProvider == git && scmProviderState == idle"
|
||||
},
|
||||
{
|
||||
"command": "git.commit",
|
||||
"when": "scmProvider == git && scmProviderState == idle"
|
||||
},
|
||||
{
|
||||
"command": "git.commitStaged",
|
||||
"when": "scmProvider == git && scmProviderState == idle"
|
||||
},
|
||||
{
|
||||
"command": "git.commitStagedSigned",
|
||||
"when": "scmProvider == git && scmProviderState == idle"
|
||||
},
|
||||
{
|
||||
"command": "git.commitAll",
|
||||
"when": "scmProvider == git && scmProviderState == idle"
|
||||
},
|
||||
{
|
||||
"command": "git.commitAllSigned",
|
||||
"when": "scmProvider == git && scmProviderState == idle"
|
||||
},
|
||||
{
|
||||
"command": "git.undoCommit",
|
||||
"when": "scmProvider == git && scmProviderState == idle"
|
||||
},
|
||||
{
|
||||
"command": "git.checkout",
|
||||
"when": "scmProvider == git && scmProviderState == idle"
|
||||
},
|
||||
{
|
||||
"command": "git.branch",
|
||||
"when": "scmProvider == git && scmProviderState == idle"
|
||||
},
|
||||
{
|
||||
"command": "git.pull",
|
||||
"when": "scmProvider == git && scmProviderState == idle"
|
||||
},
|
||||
{
|
||||
"command": "git.pullRebase",
|
||||
"when": "scmProvider == git && scmProviderState == idle"
|
||||
},
|
||||
{
|
||||
"command": "git.push",
|
||||
"when": "scmProvider == git && scmProviderState == idle"
|
||||
},
|
||||
{
|
||||
"command": "git.pushTo",
|
||||
"when": "scmProvider == git && scmProviderState == idle"
|
||||
},
|
||||
{
|
||||
"command": "git.sync",
|
||||
"when": "scmProvider == git && scmProviderState == idle"
|
||||
},
|
||||
{
|
||||
"command": "git.publish",
|
||||
"when": "scmProvider == git && scmProviderState == idle"
|
||||
},
|
||||
{
|
||||
"command": "git.showOutput",
|
||||
"when": "scmProvider == git && scmProviderState == idle"
|
||||
}
|
||||
],
|
||||
"scm/title": [
|
||||
{
|
||||
"command": "git.init",
|
||||
|
|
Loading…
Reference in a new issue