src/vs/platform/remote/common/remoteHosts.ts/parseAuthorityWithPort
export function parseAuthorityWithPort(authority: string): { host: string; port: number } {
	const { host, port } = parseAuthority(authority);
	if (typeof port === 'undefined') {
		throw new Error(`Remote authority doesn't contain a port!`);
	}
	return { host, port };
}