Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace extensions

Index

Variables

all: readonly Extension<any>[]

All extensions currently known to the system.

allAcrossExtensionHosts: readonly Extension<void>[]

All extensions across all extension hosts.

see

Extension.isFromDifferentExtensionHost

Functions

  • getExtension<T>(extensionId: string, includeDifferentExtensionHosts: boolean): Extension<T> | undefined
  • getExtension<T>(extensionId: string): Extension<T> | undefined
  • Get an extension by its full identifier in the form of: publisher.name.

    Type Parameters

    • T = any

    Parameters

    • extensionId: string

      An extension identifier.

    • includeDifferentExtensionHosts: boolean

      Include extensions from different extension host

    Returns Extension<T> | undefined

    An extension or undefined.

  • Get an extension by its full identifier in the form of: publisher.name.

    Type Parameters

    • T = any

    Parameters

    • extensionId: string

      An extension identifier.

    Returns Extension<T> | undefined

    An extension or undefined.

  • An event which fires when extensions.all changes. This can happen when extensions are installed, uninstalled, enabled or disabled.

    Parameters

    • listener: ((e: void) => any)
        • (e: void): any
        • Parameters

          • e: void

          Returns any

    • Optional thisArgs: any
    • Optional disposables: Disposable[]

    Returns Disposable