mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 20:13:32 +01:00
git: hide/show commands based on state
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user