import * as vscode from 'vscode' ; export class DisposableStore { private disposables = new Set < vscode . Disposable > ( ) ; add ( disposable ) { this . disposables . add ( disposable ) ; } dispose ( ) { for ( const disposable of this . disposables ) { disposable . dispose ( ) ; } this . disposables . clear ( ) ; } }