Explorar el Código

fixes overridden custom autolinks in search result

main
Keith Daulton hace 2 años
padre
commit
d696d4be78
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. +3
    -1
      src/views/nodes/autolinkedItemsNode.ts

+ 3
- 1
src/views/nodes/autolinkedItemsNode.ts Ver fichero

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

Cargando…
Cancelar
Guardar