extensions/microsoft-authentication/src/utils.ts/isLocalhost
function isLocalhost(uri: Uri): boolean {
	if (!/^https?$/i.test(uri.scheme)) {
		return false;
	}
	const host = uri.authority.split(':')[0];
	return LOCALHOST_ADDRESSES.indexOf(host) >= 0;
}