Model for an extension list.

Hierarchy (view full)

Constructors

Properties

_debouncedSearch: Debouncer<void, void, any[]>
_installed: IEntry[]
_isDisclaimed: boolean = false
_isEnabled: boolean = false
_isLoadingInstalledExtensions: boolean = false
_isSearching: boolean = false
_lastPage: number = 1
_lastSearchResult: IEntry[]
_page: number = 1
_pagination: number = 30
_pendingActions: Promise<any>[] = []
_query: string = ''
actionError: null | string = null
canInstall: boolean

Whether the extension manager support installation methods or not.

installPath: null | string

Extensions installation path.

installedError: null | string = null

Contains an error message if an error occurred when querying installed extensions.

name: string

Extension manager name.

promptReload: boolean = false

Whether a reload should be considered due to actions taken.

searchError: null | string = null

Contains an error message if an error occurred when searching for extensions.

serviceManager: ServiceManager.IManager

The service manager to use for building.

stateChanged: Signal<ListModel, void>

A signal emitted when any model state changes.

translator: ITranslator

Accessors

  • get isDisposed(): boolean
  • Test whether the model is disposed.

    Returns boolean

Methods

  • Install an extension.

    Parameters

    • entry: IEntry

      An entry indicating which extension to install.

    • options: {
          useVersion?: string;
      } = {}

      Additional options for the action.

      • Optional useVersion?: string

    Returns Promise<void>

  • Update the current model.

    This will query the packages repository, and the notebook server.

    Emits the stateChanged signal on successful completion.

    Parameters

    • force: boolean = false

    Returns Promise<void>