Skip to content

Commit 1002714

Browse files
authored
fix: update delay of devtools plugin logger
1 parent 479f828 commit 1002714

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

packages/devtools/src/index.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,14 @@ export class DevtoolsPlugin extends RuntimePlugin<DevtoolsPluginOptions> {
5252
this.options.bypassAuthInDev ? undefined : this.options.credential,
5353
);
5454

55-
queueMicrotask(() =>
55+
// TODO: come up with a better solution
56+
// print this message after artificial delay
57+
// to ensure it is easily visible
58+
setTimeout(() => {
5659
Logger.info(
5760
`Devtools plugin started on port http://localhost:${this.options.port ?? DEFAULT_PORT}.`,
58-
),
59-
);
61+
);
62+
}, 150);
6063
}
6164

6265
public async deactivate(ctx: CommandKitPluginRuntime): Promise<void> {

0 commit comments

Comments
 (0)