Interface ExtensionContext

An extension context is a collection of utilities private to an extension.

An instance of an ExtensionContext is provided as the first parameter to the ExtensionModule.activate-call of an extension.

interface ExtensionContext {
    extension: Extension<unknown>;
    modulePath: string;
    subscriptions: DisposableLike[];
}

Properties

extension: Extension<unknown>

The current Extension instance.

modulePath: string

The resolved module path.

subscriptions: DisposableLike[]

An array to which disposables can be added. When this extension is deactivated the disposables will be disposed.

Note that asynchronous dispose-functions aren't awaited.

Generated using TypeDoc