An source control is able to provide {@link SourceControlResourceState resource states} to the editor and interact with the editor in several source control related ways.

Fields

@:optionaloptionalstatusBarCommands:Null<Array<Command>>

Optional status bar commands.

These commands will be displayed in the editor's status bar.

read onlyrootUri:Null<Uri>

The (optional) Uri of the root of this source control.

@:optionaloptionalquickDiffProvider:Null<QuickDiffProvider>

An optional {@link QuickDiffProvider quick diff provider}.

read onlylabel:String

The human-readable label of this source control.

read onlyinputBox:SourceControlInputBox

The {@link SourceControlInputBox input box} for this source control.

read onlyid:String

The id of this source control.

dispose():Void

Dispose this source control.

createResourceGroup(id:String, label:String):SourceControlResourceGroup

Create a new {@link SourceControlResourceGroup resource group}.

@:optionaloptionalcount:Null<Int>

The UI-visible count of {@link SourceControlResourceState resource states} of this source control.

Equals to the total number of {@link SourceControlResourceState resource state} of this source control, if undefined.

@:optionaloptionalcommitTemplate:Null<String>

Optional commit template string.

The Source Control viewlet will populate the Source Control input with this value when appropriate.

@:optionaloptionalacceptInputCommand:Null<Command>

Optional accept input command.

This command will be invoked when the user accepts the value in the Source Control input.