Merge pull request #208823 from microsoft/tyriar/206124

Fix duplicate links where description is falsey
This commit is contained in:
Daniel Imms 2024-03-26 12:13:02 -07:00 committed by GitHub
commit 57f2dd34a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -221,12 +221,10 @@ export class TerminalLinkQuickpick extends DisposableStore {
}
// Skip the link if it's a duplicate URI + line/col
if (description) {
if (linkUriKeys.has(label + '|' + description)) {
continue;
}
linkUriKeys.add(label + '|' + description);
if (linkUriKeys.has(label + '|' + (description ?? ''))) {
continue;
}
linkUriKeys.add(label + '|' + (description ?? ''));
}
picks.push({ label, link, description });