Skip to main content

Interface: Disposable

Defined in: types/plugin.ts:87

A resource that can be disposed to free up resources. Follows the VS Code Disposable convention for cleanup management.

Example

const subscription = eventEmitter.on('data', handler);
context.subscriptions.push({ dispose: () => subscription.off() });

Methods

dispose()

dispose(): void

Defined in: types/plugin.ts:89

Release resources held by this disposable

Returns

void