Options
All
  • Public
  • Public/Protected
  • All
Menu

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

层级

  • SourceControl

索引

Properties(9)

Readonly id

id: string

The id of this source control.

Readonly label

label: string

The human-readable label of this source control.

Readonly rootUri

rootUri: undefined | Uri

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

Readonly inputBox

The input box for this source control.

Optional count

count: number

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

Equals to the total number of resource state of this source control, if undefined.

Optional quickDiffProvider

quickDiffProvider: QuickDiffProvider

An optional quick diff provider.

Optional commitTemplate

commitTemplate: string

Optional commit template string.

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

Optional acceptInputCommand

acceptInputCommand: Command

Optional accept input command.

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

Optional statusBarCommands

statusBarCommands: Command[]

Optional status bar commands.

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

Methods(2)

createResourceGroup

dispose

  • dispose(): void

友链:VS Code 中文文档 | VS Code 官网文档 | VS Code 扩展市场

Generated by TypeDoc. Maintained by 洛竹