Skip to content

Commit 188a8ef

Browse files
committed
Update file tracker status on tracker init
1 parent 2a9d782 commit 188a8ef

File tree

1 file changed

+3
-30
lines changed

1 file changed

+3
-30
lines changed

src/utils/setup-status.ts

Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -47,26 +47,6 @@ export async function createSetupStatusTracker(
4747
);
4848

4949
const checkStatusNow = async () => {
50-
const statusesInitialized = Object.values({
51-
awsProfileTracker: awsProfileTracker.status(),
52-
authTracker: localStackAuthenticationTracker.status(),
53-
licenseTracker: licenseTracker.status(),
54-
}).every((check) => check !== undefined);
55-
56-
if (!statusesInitialized) {
57-
outputChannel.trace(
58-
`[setup-status] File watchers not initialized yet, skipping status check : ${JSON.stringify(
59-
{
60-
awsProfileTracker: awsProfileTracker.status() ?? "undefined",
61-
authTracker:
62-
localStackAuthenticationTracker.status() ?? "undefined",
63-
licenseTracker: licenseTracker.status() ?? "undefined",
64-
},
65-
)}`,
66-
);
67-
return;
68-
}
69-
7050
statuses = await checkSetupStatus(outputChannel);
7151

7252
const setupRequired = [
@@ -120,16 +100,6 @@ export async function createSetupStatusTracker(
120100
return Promise.resolve();
121101
});
122102

123-
outputChannel.trace(
124-
`[setup-status.aws-profile] status before the first check : ${awsProfileTracker.status()}`,
125-
);
126-
outputChannel.trace(
127-
`[setup-status.auth] status before the first checkk : ${localStackAuthenticationTracker.status()}`,
128-
);
129-
outputChannel.trace(
130-
`[setup-status.license] status before the first check : ${licenseTracker.status()}`,
131-
);
132-
133103
await checkStatusNow();
134104

135105
return {
@@ -213,6 +183,9 @@ function createFileStatusTracker(
213183
outputChannel.error(error instanceof Error ? error : String(error));
214184
});
215185

186+
// Update the status immediately on file tracker initialization
187+
void updateStatus();
188+
216189
return {
217190
status() {
218191
return status;

0 commit comments

Comments
 (0)