Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ScmInput

Implements

  • Disposable

Index

Constructors

Properties

_enabled: boolean = ...
_issue: undefined | ScmInputIssue
_placeholder: undefined | string = ...
_value: undefined | string
_visible: undefined | boolean = ...
onDidChange: Event<void> = ...
onDidChangeEmitter: Emitter<void> = ...
onDidFocus: Event<void> = ...
onDidFocusEmitter: Emitter<void> = ...
options: ScmInputOptions = {}
toDispose: DisposableCollection = ...
validate: ((...arguments: []) => Promise<void>) = ...

Type declaration

    • (...arguments: []): Promise<void>
    • Debounce promise-returning & async functions.

      example
      import pDebounce = require('p-debounce');

      const expensiveCall = async input => input;

      const debouncedFn = pDebounce(expensiveCall, 200);

      for (const i of [1, 2, 3]) {
      debouncedFn(i).then(console.log);
      }
      //=> 3
      //=> 3
      //=> 3

      Parameters

      • Rest ...arguments: []

      Returns Promise<void>

      A function that delays calling fn until after wait milliseconds have elapsed since the last time it was called.

Accessors

  • get enabled(): boolean
  • set enabled(enabled: boolean): void
  • get placeholder(): undefined | string
  • set placeholder(placeholder: undefined | string): void
  • get value(): string
  • set value(value: string): void
  • get visible(): boolean
  • set visible(visible: boolean): void

Methods

  • dispose(): void
  • fireDidChange(): void
  • focus(): void
  • fromJSON(data: any): void