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

Function onReset

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

Source from the content-addressed store, hash-verified

48
49// run when "reset" is triggered
50export 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
60export const onContinue = async (actions: TT.StepActions, tutorialId: string): Promise<void> => {

Callers

nothing calls this directly

Calls 4

resetWatchersFunction · 0.90
runCommandsFunction · 0.85
runVSCodeCommandsFunction · 0.85
onResetMethod · 0.65

Tested by

no test coverage detected