VS Code API
    Preparing search index...

    Interface Event<T>

    Represents a typed event.

    A function that represents an event to which you subscribe by calling it with a listener function as argument.

    item.onDidChange(function(event) { console.log("Event happened: " + event); });
    

    Type Parameters

    • T
    • A function that represents an event to which you subscribe by calling it with a listener function as argument.

      Parameters

      • listener: (e: T) => any

        The listener function will be called when the event happens.

      • OptionalthisArgs: any

        The this-argument which will be used when calling the event listener.

      • Optionaldisposables: Disposable[]

        An array to which a Disposable will be added.

      Returns Disposable

      A disposable which unsubscribes the event listener.