Browse Source

fixes overridden custom autolinks in search result

main
Keith Daulton 2 years ago
parent
commit
d696d4be78
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/views/nodes/autolinkedItemsNode.ts

+ 3
- 1
src/views/nodes/autolinkedItemsNode.ts View File

@ -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;
}

Loading…
Cancel
Save