OptionalacceptOptional accept input command.
This command will be invoked when the user accepts the value in the Source Control input.
OptionalcommitOptional commit template string.
The Source Control viewlet will populate the Source Control input with this value when appropriate.
OptionalcontextContext value of the source control. This can be used to contribute source control specific actions.
For example, if a source control is given a context value of repository, when contributing actions to scm/sourceControl/context
using menus extension point, you can specify context value for key scmProviderContext in when expressions, like scmProviderContext == repository.
"contributes": {
"menus": {
"scm/sourceControl/context": [
{
"command": "extension.gitAction",
"when": "scmProviderContext == repository"
}
]
}
}
This will show action extension.gitAction only for source controls with contextValue equal to repository.
OptionalcountThe UI-visible count of resource states of this source control.
Equals to the total number of resource state of this source control, if undefined.
ReadonlyidThe id of this source control.
ReadonlyinputThe input box for this source control.
ReadonlylabelThe human-readable label of this source control.
ReadonlyonAn event signaling when the selection state changes.
ReadonlyonFired when the parent source control is disposed.
OptionalquickAn optional quick diff provider.
ReadonlyrootThe (optional) Uri of the root of this source control.
ReadonlyselectedWhether the source control is selected.
OptionalstatusOptional status bar commands.
These commands will be displayed in the editor's status bar.
https://github.com/microsoft/vscode/issues/254910