Interface Extension<ExportedApi>

Represents an extension.

To get a snapshot of an extension for a given extension identifier use getExtension.

interface Extension<ExportedApi> {
    exports: ExportedApi;
    id: string;
    manifest: ExtensionManifest;
    reasons?: Error[];
    status: ExtensionStatus;
}

Type Parameters

  • ExportedApi = unknown

    Type of the exported API

Properties

exports: ExportedApi

The public API exported by this extension (return value of activateExtension). It is an invalid action to access this field before this extension has been activated.

id: string

The canonical extension identifier in the form of publisher.name.

The contents of the extension's package.json.

reasons?: Error[]

One or more reasons for extension rejection, if the status is "rejected".

Current status of the extension.

Generated using TypeDoc