SourceControl

An source control is able to provide resource states to the editor and interact with the editor in several source control related ways.

Online Documentation

Properties

Link copied to clipboard
abstract external var acceptInputCommand: Command?

Optional accept input command.

Link copied to clipboard
abstract external var commitTemplate: String?

Optional commit template string.

Link copied to clipboard
abstract external var count: Int?

The UI-visible count of resource states of this source control.

Link copied to clipboard
abstract external val id: String

The id of this source control.

Link copied to clipboard
abstract external val inputBox: SourceControlInputBox

The input box for this source control.

Link copied to clipboard
abstract external val label: String

The human-readable label of this source control.

Link copied to clipboard
abstract external var quickDiffProvider: QuickDiffProvider?

An optional quick diff provider.

Link copied to clipboard
abstract external val rootUri: Uri?

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

Link copied to clipboard
abstract external var statusBarCommands: ReadonlyArray<Command>?

Optional status bar commands.

Functions

Link copied to clipboard
abstract external fun createResourceGroup(id: String, label: String): SourceControlResourceGroup

Create a new resource group.

Link copied to clipboard
abstract external override fun dispose()

Dispose this source control.