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
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
A disposable which unsubscribes the event listener.