File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,13 @@ 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" ;
22+ import { minDelay } from "./promises.ts" ;
1823import { checkSetupStatus } from "./setup.ts" ;
1924import type { TimeTracker } from "./time-tracker.ts" ;
2025
@@ -277,6 +282,12 @@ function createLicenseStatusTracker(
277282 "[setup-status.license]" ,
278283 [ LOCALSTACK_AUTH_FILENAME , LICENSE_FILENAME ] , //TODO rewrite to depend on change in localStackAuthenticationTracker
279284 async ( ) =>
280- ( await checkIsLicenseValid ( outputChannel ) ) ? "ok" : "setup_required" ,
285+ ( await minDelay (
286+ activateLicense ( outputChannel ) . then ( ( ) =>
287+ checkIsLicenseValid ( outputChannel ) ,
288+ ) ,
289+ ) )
290+ ? "ok"
291+ : "setup_required" ,
281292 ) ;
282293}
You can’t perform that action at this time.
0 commit comments