File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,11 @@ import {
1313} from "./configure-aws.ts" ;
1414import { createEmitter } from "./emitter.ts" ;
1515import { immediateOnce } from "./immediate-once.ts" ;
16- import { checkIsLicenseValid , LICENSE_FILENAME } from "./license.ts" ;
16+ import {
17+ checkIsLicenseValid ,
18+ activateLicense ,
19+ LICENSE_FILENAME ,
20+ } from "./license.ts" ;
1721import type { UnwrapPromise } from "./promises.ts" ;
1822import { checkSetupStatus } from "./setup.ts" ;
1923import type { TimeTracker } from "./time-tracker.ts" ;
@@ -277,6 +281,10 @@ function createLicenseStatusTracker(
277281 "[setup-status.license]" ,
278282 [ LOCALSTACK_AUTH_FILENAME , LICENSE_FILENAME ] , //TODO rewrite to depend on change in localStackAuthenticationTracker
279283 async ( ) =>
280- ( await checkIsLicenseValid ( outputChannel ) ) ? "ok" : "setup_required" ,
284+ ( await activateLicense ( outputChannel ) . then ( ( ) =>
285+ checkIsLicenseValid ( outputChannel ) ,
286+ ) )
287+ ? "ok"
288+ : "setup_required" ,
281289 ) ;
282290}
You can’t perform that action at this time.
0 commit comments