use 'enablement' instead of 'preconditions'

This commit is contained in:
unknown
2020-11-12 08:46:41 +00:00
parent ceeb974856
commit cc9616baf8
3 changed files with 13 additions and 11 deletions

View File

@@ -2084,35 +2084,35 @@
"view": "scm",
"contents": "%view.workbench.scm.empty%",
"when": "config.git.enabled && workbenchState == empty",
"preconditions": ["git.state == initialized"],
"enablement": "git.state == initialized",
"group": "2_open@1"
},
{
"view": "scm",
"contents": "%view.workbench.scm.folder%",
"when": "config.git.enabled && workbenchState == folder",
"preconditions": ["git.state == initialized"],
"enablement": "git.state == initialized",
"group": "5_scm@1"
},
{
"view": "scm",
"contents": "%view.workbench.scm.workspace%",
"when": "config.git.enabled && git.state == initialized && workbenchState == workspace && workspaceFolderCount != 0",
"preconditions": ["git.state == initialized"],
"enablement": "git.state == initialized",
"group": "5_scm@1"
},
{
"view": "scm",
"contents": "%view.workbench.scm.emptyWorkspace%",
"when": "config.git.enabled && workbenchState == workspace && workspaceFolderCount == 0",
"preconditions": ["git.state == initialized"],
"enablement": "git.state == initialized",
"group": "2_open@1"
},
{
"view": "explorer",
"contents": "%view.workbench.cloneRepository%",
"when": "config.git.enabled",
"preconditions": ["git.state == initialized"],
"enablement": "git.state == initialized",
"group": "5_scm@1"
}
]