src/vs/platform/remote/common/remoteAgentConnection.ts/PromiseWithTimeout/registerDisposable
class PromiseWithTimeout:	public registerDisposable(disposable: IDisposable): void {
		if (this._state === 'pending') {
			this._disposables.add(disposable);
		} else {
			disposable.dispose();
		}
	}