Skip to main content

Interface: PluginContext

Defined in: types/plugin.ts:45

Context provided to a plugin during activation. Contains the plugin's identity, a scoped logger, and a subscriptions array for tracking disposables that should be cleaned up on deactivation.

Extended by

Properties

logger

logger: PluginLogger

Defined in: types/plugin.ts:50

Scoped logger instance for the plugin


pluginId

pluginId: string

Defined in: types/plugin.ts:47

The ID of the plugin being activated


subscriptions

subscriptions: Disposable[]

Defined in: types/plugin.ts:56

Array of disposables that will be disposed when the plugin deactivates. Push disposables here during activate() for automatic cleanup.