File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -3,17 +3,20 @@ import type { LogOutputChannel } from "vscode";
33import { checkIsAuthenticated } from "./authenticate.ts" ;
44import { checkIsProfileConfigured } from "./configure-aws.ts" ;
55import { checkLocalstackInstalled } from "./install.ts" ;
6+ import { checkIsLicenseValid } from "./license.ts" ;
67
78export 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}
You can’t perform that action at this time.
0 commit comments