mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
Merge pull request #208823 from microsoft/tyriar/206124
Fix duplicate links where description is falsey
This commit is contained in:
commit
57f2dd34a2
|
@ -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 });
|
||||
|
|
Loading…
Reference in a new issue