Sfoglia il codice sorgente

fixes overridden custom autolinks in search result

main
Keith Daulton 2 anni fa
parent
commit
d696d4be78
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. +3
    -1
      src/views/nodes/autolinkedItemsNode.ts

+ 3
- 1
src/views/nodes/autolinkedItemsNode.ts Vedi 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;
}

Caricamento…
Annulla
Salva