Interface Plugin<T>

Represents an plugin.

To get an instance of an Plugin use getPlugin.

interface Plugin<T> {
    exports: T;
    id: string;
    isActive: boolean;
    packageJSON: any;
    pluginPath: string;
    pluginType: PluginType;
    pluginUri: Uri;
    activate(): Thenable<T>;
}

Type Parameters

  • T

Hierarchy (view full)

Implemented by

Properties

exports: T

The public API exported by this plug-in. It is an invalid action to access this field before this plug-in has been activated.

id: string

The canonical plug-in identifier in the form of: publisher.name.

isActive: boolean

true if the plug-in has been activated.

packageJSON: any

The parsed contents of the plug-in's package.json.

pluginPath: string

The absolute file path of the directory containing this plug-in.

pluginType: PluginType
pluginUri: Uri

The uri of the directory containing this plug-in.

Methods