Represents a typed event.

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

@link Disposable} will be added. @example item.onDidChange(function(event) { console.log("Event happened: " + event); });

Parameters:

listener

The listener function will be called when the event happens.

thisArgs

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

disposables

An array to which a {

Returns:

A disposable which unsubscribes the event listener.

Alias

alias for (listener:(e:T) ‑> Void, thisArgs:Any, disposables:Array<vscode.Disposable>) ‑> vscode.Disposable