@@ -3,7 +3,6 @@ import * as TT from 'typings/tutorial'
33import * as E from 'typings/error'
44import * as vscode from 'vscode'
55import { setupActions , solutionActions } from './actions/setupActions'
6- import tutorialConfig from './actions/utils/tutorialConfig'
76import { COMMANDS } from './commands'
87import Context from './services/context/context'
98import logger from './services/logger'
@@ -60,24 +59,7 @@ class Channel implements Channel {
6059 actions . onTutorialConfig ( action , this . context , this . workspaceState , this . send )
6160 return
6261 case 'EDITOR_TUTORIAL_CONTINUE_CONFIG' :
63- try {
64- const tutorialContinue : TT . Tutorial | null = this . context . tutorial . get ( )
65- if ( ! tutorialContinue ) {
66- throw new Error ( 'Invalid tutorial to continue' )
67- }
68- await tutorialConfig ( {
69- data : tutorialContinue ,
70- alreadyConfigured : true ,
71- } )
72- // update the current stepId on startup
73- vscode . commands . executeCommand ( COMMANDS . SET_CURRENT_POSITION , action . payload . position )
74- } catch ( e ) {
75- const error = {
76- type : 'UnknownError' ,
77- message : `Location: Editor tutorial continue config.\n\n ${ e . message } ` ,
78- }
79- this . send ( { type : 'CONTINUE_FAILED' , payload : { error } } )
80- }
62+ actions . onTutorialContinueConfig ( action , this . context , this . send )
8163 return
8264 case 'EDITOR_VALIDATE_SETUP' :
8365 try {
0 commit comments