From d696d4be785e3d71f97bf9d80ccd9ef4fa3b69c8 Mon Sep 17 00:00:00 2001 From: Keith Daulton Date: Thu, 17 Nov 2022 14:30:10 -0500 Subject: [PATCH] fixes overridden custom autolinks in search result --- src/views/nodes/autolinkedItemsNode.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/nodes/autolinkedItemsNode.ts b/src/views/nodes/autolinkedItemsNode.ts index 4b6ac0a..e4e2b73 100644 --- a/src/views/nodes/autolinkedItemsNode.ts +++ b/src/views/nodes/autolinkedItemsNode.ts @@ -50,7 +50,7 @@ export class AutolinkedItemsNode extends ViewNode { if (remote != null) { const providerAutolinks = this.view.container.autolinks.getAutolinks(combineMessages, remote); - items = new Map(union(customAutolinks, providerAutolinks)); + items = providerAutolinks; const [autolinkedMapResult /*, ...prsResults*/] = await Promise.allSettled([ this.view.container.autolinks.getLinkedIssuesAndPullRequests(combineMessages, remote, { @@ -65,6 +65,8 @@ export class AutolinkedItemsNode extends ViewNode { items.set(id, issue); } } + + items = new Map(union(items, customAutolinks)); } else { items = customAutolinks; }