Skip to content

Commit 7fa2649

Browse files
fix: refine progress notification formatting in LCA status polling
1 parent 6ae959e commit 7fa2649

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/tools/testmanagement-utils/poll-lca-status.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export async function pollLCAStatus(
4949
const elapsedTime = Date.now() - notificationStartTime;
5050
const progressPercentage = Math.min(
5151
90,
52-
Math.floor((elapsedTime / maxWaitTimeMs) * 90)
52+
Math.floor((elapsedTime / maxWaitTimeMs) * 90),
5353
);
5454

5555
await context.sendNotification({
@@ -139,8 +139,8 @@ export async function pollLCAStatus(
139139
);
140140

141141
// Cycle through different numbers of dots (2, 3, 4, 5, then back to 2)
142-
const dotCount = ((Math.floor(elapsedTime / pollIntervalMs) % 4) + 2);
143-
const dots = '.'.repeat(dotCount);
142+
const dotCount = (Math.floor(elapsedTime / pollIntervalMs) % 4) + 2;
143+
const dots = ".".repeat(dotCount);
144144

145145
await context.sendNotification({
146146
method: "notifications/progress",

0 commit comments

Comments
 (0)