Skip to content

Commit ac51d75

Browse files
authored
Do not wait to collect files to send exp data (#4463)
1 parent 7e4a495 commit ac51d75

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

extension/src/experiments/data/index.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,7 @@ export class ExperimentsData extends BaseData<ExperimentsOutput> {
4747
}
4848

4949
public async update(): Promise<void> {
50-
await Promise.all([
51-
this.notifyChanged(await this.updateExpShow()),
52-
this.notifyChanged(await this.updateRemoteExpRefs())
53-
])
50+
await Promise.all([this.updateExpShow(), this.updateRemoteExpRefs()])
5451
}
5552

5653
private async updateExpShow() {
@@ -77,8 +74,9 @@ export class ExperimentsData extends BaseData<ExperimentsOutput> {
7774
...args
7875
)
7976

77+
this.notifyChanged({ availableNbCommits, expShow, gitLog, rowOrder })
78+
8079
this.collectFiles({ expShow })
81-
return { availableNbCommits, expShow, gitLog, rowOrder }
8280
}
8381

8482
private async collectGitLogByBranch(
@@ -184,7 +182,8 @@ export class ExperimentsData extends BaseData<ExperimentsOutput> {
184182
),
185183
this.isReady()
186184
])
187-
return { remoteExpRefs }
185+
186+
this.notifyChanged({ remoteExpRefs })
188187
}
189188

190189
private waitForInitialLocalData() {

0 commit comments

Comments
 (0)