@@ -8,14 +8,15 @@ import saveCommit from '../actions/saveCommit'
88import { setupActions , solutionActions } from '../actions/setupActions'
99import tutorialConfig from '../actions/tutorialConfig'
1010import { COMMANDS } from '../editor/commands'
11- import logger from '../services/logger'
1211import Context from './context'
13- import { version , compareVersions } from '../services/dependencies'
14- import { openWorkspace , checkWorkspaceEmpty } from '../services/workspace'
1512import { readFile } from 'fs'
1613import { join } from 'path'
1714import { promisify } from 'util'
15+ import logger from '../services/logger'
16+ import { version , compareVersions } from '../services/dependencies'
17+ import { openWorkspace , checkWorkspaceEmpty } from '../services/workspace'
1818import { showOutput } from '../services/testRunner/output'
19+ import { exec } from '../services/node'
1920import { WORKSPACE_ROOT , TUTORIAL_URL } from '../environment'
2021
2122const readFileAsync = promisify ( readFile )
@@ -320,7 +321,11 @@ class Channel implements Channel {
320321vscode . commands . executeCommand ( COMMANDS . RUN_TEST , action ?. payload )
321322return
322323case 'EDITOR_RUN_RESET_SCRIPT' :
324+ const tutorial :TT . Tutorial | null = this . context . tutorial . get ( )
323325// if tutorial.config.reset.command, run it
326+ if ( tutorial ?. config ?. reset ?. command ) {
327+ await exec ( { command :tutorial . config . reset . command } )
328+ }
324329return
325330default :
326331logger ( `No match for action type:${ actionType } ` )