Skip to main content

Function: onDidStateChange()

onDidStateChange(listener, thisArgs?, disposables?): Disposable

Listen for changes on the proxy state (enabled or disabled). The listener will be called with the new state every time the state changes.

For examples, see proxy and Event.

Parameters

listener

(e) => any

The listener function will be called when the event happens.

thisArgs?

any

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

disposables?

Disposable[]

An array to which the resulting Disposable will be added.

Returns

Disposable

A disposable which unsubscribes the event listener.

Defined in

packages/extension-api/src/extension-api.d.ts:1074