@@ -91,15 +91,14 @@ class Channel implements Channel {
9191 }
9292 // communicate to client the tutorial & stepProgress state
9393 this . send ( { type : 'LOAD_STORED_TUTORIAL' , payload : { env, tutorial, progress, position } } )
94-
95- return
9694 } catch ( e ) {
9795 const error = {
9896 type : 'UnknownError' ,
9997 message : `Location: Editor startup\n\n${ e . message } ` ,
10098 }
10199 this . send ( { type : 'EDITOR_STARTUP_FAILED' , payload : { error } } )
102100 }
101+ return
103102
104103 // clear tutorial local storage
105104 case 'TUTORIAL_CLEAR' :
@@ -203,14 +202,14 @@ class Channel implements Channel {
203202
204203 // report back to the webview that setup is complete
205204 this . send ( { type : 'TUTORIAL_CONFIGURED' } )
206- return
207205 } catch ( e ) {
208206 const error = {
209207 type : 'UnknownError' ,
210208 message : `Location: EditorTutorialConfig.\n\n ${ e . message } ` ,
211209 }
212210 this . send ( { type : 'TUTORIAL_CONFIGURE_FAIL' , payload : { error } } )
213211 }
212+ return
214213 case 'EDITOR_TUTORIAL_CONTINUE_CONFIG' :
215214 try {
216215 const tutorialContinue : TT . Tutorial | null = this . context . tutorial . get ( )
@@ -224,14 +223,14 @@ class Channel implements Channel {
224223 } )
225224 // update the current stepId on startup
226225 vscode . commands . executeCommand ( COMMANDS . SET_CURRENT_STEP , action . payload . stepId )
227- return
228226 } catch ( e ) {
229227 const error = {
230228 type : 'UnknownError' ,
231229 message : `Location: Editor tutorial continue config.\n\n ${ e . message } ` ,
232230 }
233231 this . send ( { type : 'CONTINUE_FAILED' , payload : { error } } )
234232 }
233+ return
235234 case 'EDITOR_VALIDATE_SETUP' :
236235 try {
237236 // check workspace is selected
@@ -272,14 +271,14 @@ class Channel implements Channel {
272271 return
273272 }
274273 this . send ( { type : 'SETUP_VALIDATED' } )
275- return
276274 } catch ( e ) {
277275 const error = {
278276 type : 'UknownError' ,
279277 message : e . message ,
280278 }
281279 this . send ( { type : 'VALIDATE_SETUP_FAILED' , payload : { error } } )
282280 }
281+ return
283282 case 'EDITOR_REQUEST_WORKSPACE' :
284283 openWorkspace ( )
285284 return
0 commit comments