Interface SourceControlInputBox

Represents the input box in the Source Control viewlet.

interface SourceControlInputBox {
    enabled: boolean;
    placeholder: string;
    value: string;
    visible: boolean;
    validateInput?(value, cursorPosition): ProviderResult<undefined | null | SourceControlInputBoxValidation>;
}

Properties

enabled: boolean

Controls whether the input box is enabled (default is true).

placeholder: string

A string to show as place holder in the input box to guide the user.

value: string

Setter and getter for the contents of the input box.

visible: boolean

Controls whether the input box is visible (default is true).

Methods