VS Code API
    Preparing search index...

    Class EventEmitter<T>

    An event emitter can be used to create and manage an Event for others to subscribe to. One emitter always owns one event.

    Use this class if you want to provide event from within your extension, for instance inside a TextDocumentContentProvider or when providing API to other extensions.

    Type Parameters

    • T
    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    event: Event<T>

    The event listeners can subscribe to.

    Methods

    • Dispose this object and free resources.

      Returns void

    • Notify all subscribers of the event. Failure of one or more listener will not fail this function call.

      Parameters

      • data: T

        The event object.

      Returns void