MCPcopy Create free account
hub / github.com/coderoad/coderoad-vscode / onInit

Function onInit

src/services/hooks/index.ts:14–22  ·  view source on GitHub ↗
(actions: TT.StepActions, tutorialId: string)

Source from the content-addressed store, hash-verified

12
13// run at the end of when a tutorial is configured
14export const onInit = async (actions: TT.StepActions, tutorialId: string): Promise<void> => {
15 await loadCommits(actions?.commits)
16 await runCommands(actions?.commands)
17 await runVSCodeCommands(actions?.vscodeCommands)
18 webhooks.onInit({
19 tutorialId,
20 coderoadVersion: VERSION,
21 })
22}
23
24// run when a level starts
25export const onLevelEnter = async (actions: TT.StepActions): Promise<void> => {

Callers

nothing calls this directly

Calls 3

loadCommitsFunction · 0.90
runCommandsFunction · 0.85
runVSCodeCommandsFunction · 0.85

Tested by

no test coverage detected