浏览代码

fixes overridden custom autolinks in search result

main
Keith Daulton 2 年前
父节点
当前提交
d696d4be78
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. +3
    -1
      src/views/nodes/autolinkedItemsNode.ts

+ 3
- 1
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;
}

正在加载...
取消
保存