@@ -4,19 +4,21 @@ import * as TT from 'typings/tutorial'
44import Context from '../services/context/context'
55import tutorialConfig from './utils/tutorialConfig'
66import { COMMANDS , send } from '../commands'
7+ import logger from '../services/logger'
78
89const onTutorialConfigContinue = async ( action :T . Action , context :Context ) :Promise < void > => {
10+ logger ( 'onTutorialConfigContinue' , action )
911try {
10- const tutorialContinue :TT . Tutorial | null = context . tutorial . get ( )
11- if ( ! tutorialContinue ) {
12+ const tutorialToContinue :TT . Tutorial | null = context . tutorial . get ( )
13+ if ( ! tutorialToContinue ) {
1214throw new Error ( 'Invalid tutorial to continue' )
1315}
16+ // update the current stepId on startup
17+ vscode . commands . executeCommand ( COMMANDS . SET_CURRENT_POSITION , action . payload . position )
1418await tutorialConfig ( {
15- data :tutorialContinue ,
19+ data :tutorialToContinue ,
1620alreadyConfigured :true ,
1721} )
18- // update the current stepId on startup
19- vscode . commands . executeCommand ( COMMANDS . SET_CURRENT_POSITION , action . payload . position )
2022} catch ( e ) {
2123const error = {
2224type :'UnknownError' ,