File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed
web-app/src/services/state Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -319,6 +319,9 @@ class Channel implements Channel {
319319 case 'EDITOR_RUN_TEST' :
320320 vscode . commands . executeCommand ( COMMANDS . RUN_TEST , action ?. payload )
321321 return
322+ case 'EDITOR_RUN_RESET_SCRIPT' :
323+ // if tutorial.config.reset.command, run it
324+ return
322325 default :
323326 logger ( `No match for action type: ${ actionType } ` )
324327 return
Original file line number Diff line number Diff line change @@ -117,4 +117,9 @@ export default (editorSend: any) => ({
117117 payload : { position : context . position } ,
118118 } )
119119 } ,
120+ runResetScript ( ) {
121+ editorSend ( {
122+ type : 'EDITOR_RUN_RESET_SCRIPT' ,
123+ } )
124+ } ,
120125} )
Original file line number Diff line number Diff line change @@ -168,6 +168,9 @@ export const createMachine = (options: any) => {
168168 RUN_TEST : {
169169 actions : [ 'runTest' ] ,
170170 } ,
171+ RESET_SCRIPT : {
172+ actions : [ 'runResetScript' ] ,
173+ } ,
171174 } ,
172175 } ,
173176 TestRunning : {
You can’t perform that action at this time.
0 commit comments