Skip to content

Commit 04808ad

Browse files
committed
Add license check to setup required
1 parent 416a049 commit 04808ad

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/utils/setup.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,20 @@ import type { LogOutputChannel } from "vscode";
33
import { checkIsAuthenticated } from "./authenticate.ts";
44
import { checkIsProfileConfigured } from "./configure-aws.ts";
55
import { checkLocalstackInstalled } from "./install.ts";
6+
import { checkIsLicenseValid } from "./license.ts";
67

78
export async function checkIsSetupRequired(
89
outputChannel: LogOutputChannel,
910
): Promise<boolean> {
10-
const [isInstalled, isAuthenticated, isProfileConfigured] = await Promise.all(
11-
[
11+
const [isInstalled, isAuthenticated, isLicenseValid, isProfileConfigured] =
12+
await Promise.all([
1213
checkLocalstackInstalled(outputChannel),
1314
checkIsAuthenticated(),
15+
checkIsLicenseValid(outputChannel),
1416
checkIsProfileConfigured(),
15-
],
16-
);
17+
]);
1718

18-
return !isInstalled || !isAuthenticated || !isProfileConfigured;
19+
return (
20+
!isInstalled || !isAuthenticated || !isLicenseValid || !isProfileConfigured
21+
);
1922
}

0 commit comments

Comments
 (0)