Bläddra i källkod

Adds more parallelism

main
Eric Amodio 4 år sedan
förälder
incheckning
208d9e7fbc
1 ändrade filer med 2 tillägg och 5 borttagningar
  1. +2
    -5
      src/views/nodes/branchNode.ts

+ 2
- 5
src/views/nodes/branchNode.ts Visa fil

@ -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(

Laddar…
Avbryt
Spara