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

Function onSolutionEnter

src/services/hooks/index.ts:40–47  ·  view source on GitHub ↗
(actions: TT.StepActions)

Source from the content-addressed store, hash-verified

38
39// run when a step solution starts
40export const onSolutionEnter = async (actions: TT.StepActions): Promise<void> => {
41 await git.clear()
42 await loadCommits(actions?.commits)
43 await openFiles(actions?.files)
44 await runCommands(actions?.commands)
45 await runVSCodeCommands(actions?.vscodeCommands)
46 await runTest()
47}
48
49// run when "reset" is triggered
50export const onReset = async (actions: TT.StepActions, tutorialId: string): Promise<void> => {

Callers

nothing calls this directly

Calls 5

loadCommitsFunction · 0.90
runTestFunction · 0.90
openFilesFunction · 0.85
runCommandsFunction · 0.85
runVSCodeCommandsFunction · 0.85

Tested by

no test coverage detected