(actions: TT.StepActions, tutorialId: string)
| 48 | |
| 49 | // run when "reset" is triggered |
| 50 | export const onReset = async (actions: TT.StepActions, tutorialId: string): Promise<void> => { |
| 51 | await resetWatchers() |
| 52 | await runCommands(actions?.commands) |
| 53 | await runVSCodeCommands(actions?.vscodeCommands) |
| 54 | webhooks.onReset({ |
| 55 | tutorialId, |
| 56 | }) |
| 57 | } |
| 58 | |
| 59 | // run when a tutorial is continued |
| 60 | export const onContinue = async (actions: TT.StepActions, tutorialId: string): Promise<void> => { |
nothing calls this directly
no test coverage detected