Model for an extension list.

Hierarchy (View Summary)

Constructors

Properties

actionError: null | string = null
canInstall: boolean

Whether the extension manager supports installing extensions.

When false, extensions are listed read-only: there is no registry to search and no un-/installation. They can still be enabled or disabled when canManage is true.

canManage: boolean

Whether the extension manager supports enabling and disabling extensions.

It is independent of canInstall, so a read-only manager still exposes enable and disable actions by default. Set it to false for a pure listing with no actions at all.

installedError: null | string = null

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

installPath: null | string

Extensions installation path.

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 canFetch(): boolean
  • Whether the model may fetch data from external web services, such as extension author avatars.

    Fetching requires the user to have accepted the disclaimer (see isDisclaimed); this holds for a read-only manager too.

    Returns boolean

  • get canPerformActions(): boolean
  • Whether actions may currently be performed on installed extensions.

    Requires canManage. An installable manager additionally requires the disclaimer, as its actions may contact external services; a read-only manager only toggles extensions locally.

    Returns boolean

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

    Returns boolean

Methods

  • 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>