extensions/github/src/util.ts/dispose
export function dispose(arg: vscode.Disposable | Iterable<vscode.Disposable>): void {
	if (arg instanceof vscode.Disposable) {
		arg.dispose();
	} else {
		for (const disposable of arg) {
			disposable.dispose();
		}
	}
}