Skip to content

Commit e90d1e4

Browse files
committed
Chain initial activation and license check
It is a single action in user's eyes so should be wrapped within one single `minDelay`
1 parent 2a06895 commit e90d1e4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/plugins/setup.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,9 @@ export default createPlugin(
176176
// Activating the license pre-emptively to know its state during the setup process.
177177
await activateLicense(outputChannel);
178178
const licenseIsValid = await minDelay(
179-
checkIsLicenseValid(outputChannel),
179+
activateLicense(outputChannel).then(() =>
180+
checkIsLicenseValid(outputChannel),
181+
),
180182
);
181183
if (licenseIsValid) {
182184
progress.report({

0 commit comments

Comments
 (0)