in vscode/qodana/src/core/handler/index.ts [121:133]
function hostsEqual(url1: string | undefined, url2: string | undefined): boolean {
if (url1 === undefined || url2 === undefined) {
return url1 === url2 || url1 === cloudWebsite() || url2 === cloudWebsite();
}
const normalizedUrl1 = normalizeUrl(url1);
const normalizedUrl2 = normalizeUrl(url2);
const host1 = new URL(normalizedUrl1 ? normalizedUrl1 : url1);
const host2 = new URL(normalizedUrl2 ? normalizedUrl2 : url2);
return host1.host === host2.host;
}