extensions/markdown-language-features/server/src/util/dispose.ts/Disposable/_register
class Disposable:	protected _register<T extends IDisposable>(value: T): T {
		if (this._isDisposed) {
			value.dispose();
		} else {
			this._disposables.push(value);
		}
		return value;
	}