Creates a new Disposable calling the provided function on dispose.
Function that disposes something.
The optional button.
The command instance.
A description of the command.
Executes the command.
The ID of the command.
The item from the settings.
The name for display.
Dispose this object.
Combine many disposable-likes into one. Use this method when having objects with a dispose function which are not instances of Disposable.
Objects that have at least a dispose
-function member.
Returns a new disposable which, upon dispose, will dispose all provided disposables.
Generated using TypeDoc
A workspace command.