import { Global } from '../global' ; import { Disposable } from 'vscode' ; export default class AbstractProvider { protected _global : Global ; protected _disposables : Disposable [ ] ; constructor ( global ) { this . _global = global ; this . _disposables = [ ] ; } dispose ( ) { while ( this . _disposables . length ) { this . _disposables . pop ( ) . dispose ( ) ; } } }