Datalayer VS Code Extension - v0.0.4
    Preparing search index...

    Class DisposableAbstract

    Abstract base class for implementing the disposable pattern. Manages a collection of child disposables and ensures proper cleanup.

    class MyCustomEditor extends Disposable {
    constructor() {
    super();
    // Register disposables that should be cleaned up
    this._register(vscode.workspace.onDidChangeConfiguration(() => {
    // Handle config change
    }));
    }
    }

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    Properties

    _disposables: Disposable[] = []

    Collection of child disposables to clean up

    _isDisposed: boolean = false

    Whether this instance has been disposed

    Accessors

    • get isDisposed(): boolean

      Gets whether this instance has been disposed.

      Returns boolean

      True if disposed, false otherwise

    Methods

    • Registers a disposable to be cleaned up when this instance is disposed.

      Type Parameters

      • T extends Disposable

      Parameters

      • value: T

        The disposable to register

      Returns T

      The registered disposable

    • Disposes of this instance and all registered disposables.

      Returns void