瀏覽代碼

Adds more parallelism

main
Eric Amodio 4 年之前
父節點
當前提交
208d9e7fbc
共有 1 個檔案被更改,包括 2 行新增5 行删除
  1. +2
    -5
      src/views/nodes/branchNode.ts

+ 2
- 5
src/views/nodes/branchNode.ts 查看文件

@ -114,8 +114,9 @@ export class BranchNode
if (this._children == null) {
const children = [];
const [log, pr, unpublished] = await Promise.all([
const [log, getBranchAndTagTips, pr, unpublished] = await Promise.all([
this.getLog(),
Container.git.getBranchesAndTagsTipsFn(this.uri.repoPath, this.branch.name),
this.view.config.pullRequests.enabled &&
this.view.config.pullRequests.showForBranches &&
(this.branch.tracking || this.branch.remote)
@ -177,10 +178,6 @@ export class BranchNode
children.push(new MessageNode(this.view, this, '', GlyphChars.Dash.repeat(2), ''));
}
const getBranchAndTagTips = await Container.git.getBranchesAndTagsTipsFn(
this.uri.repoPath,
this.branch.name,
);
children.push(
...insertDateMarkers(
Iterables.map(

Loading…
取消
儲存