Skip to content

Latest commit

 

History

History
187 lines (103 loc) · 4.65 KB

codearts_plugin_.SourceControl.md

File metadata and controls

187 lines (103 loc) · 4.65 KB

@codearts/plugin / "@codearts/plugin" / SourceControl

Interface: SourceControl

"@codearts/plugin".SourceControl

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

Table of contents

Properties

Methods

Properties

acceptInputCommand

Optional acceptInputCommand: Command

Optional accept input command.

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

Defined in

index.d.ts:14964


commitTemplate

Optional commitTemplate: string

Optional commit template string.

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

Defined in

index.d.ts:14956


count

Optional count: number

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

If undefined, this source control will

  • display its UI-visible count as zero, and
  • contribute the count of its resource states to the UI-visible aggregated count for all source controls

Defined in

index.d.ts:14943


id

Readonly id: string

The id of this source control.

Defined in

index.d.ts:14918


inputBox

Readonly inputBox: SourceControlInputBox

The input box for this source control.

Defined in

index.d.ts:14933


label

Readonly label: string

The human-readable label of this source control.

Defined in

index.d.ts:14923


quickDiffProvider

Optional quickDiffProvider: QuickDiffProvider

An optional quick diff provider.

Defined in

index.d.ts:14948


rootUri

Readonly rootUri: undefined | Uri

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

Defined in

index.d.ts:14928


statusBarCommands

Optional statusBarCommands: Command[]

Optional status bar commands.

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

Defined in

index.d.ts:14971

Methods

createResourceGroup

createResourceGroup(id, label): SourceControlResourceGroup

Create a new resource group.

Parameters

Name Type
id string
label string

Returns

SourceControlResourceGroup

Defined in

index.d.ts:14976


dispose

dispose(): void

Dispose this source control.

Returns

void

Defined in

index.d.ts:14981