@@ -91,15 +91,14 @@ class Channel implements Channel {
91
91
}
92
92
// communicate to client the tutorial & stepProgress state
93
93
this . send ( { type : 'LOAD_STORED_TUTORIAL' , payload : { env, tutorial, progress, position } } )
94
-
95
- return
96
94
} catch ( e ) {
97
95
const error = {
98
96
type : 'UnknownError' ,
99
97
message : `Location: Editor startup\n\n${ e . message } ` ,
100
98
}
101
99
this . send ( { type : 'EDITOR_STARTUP_FAILED' , payload : { error } } )
102
100
}
101
+ return
103
102
104
103
// clear tutorial local storage
105
104
case 'TUTORIAL_CLEAR' :
@@ -184,14 +183,14 @@ class Channel implements Channel {
184
183
185
184
// report back to the webview that setup is complete
186
185
this . send ( { type : 'TUTORIAL_CONFIGURED' } )
187
- return
188
186
} catch ( e ) {
189
187
const error = {
190
188
type : 'UnknownError' ,
191
189
message : `Location: EditorTutorialConfig.\n\n ${ e . message } ` ,
192
190
}
193
191
this . send ( { type : 'TUTORIAL_CONFIGURE_FAIL' , payload : { error } } )
194
192
}
193
+ return
195
194
case 'EDITOR_TUTORIAL_CONTINUE_CONFIG' :
196
195
try {
197
196
const tutorialContinue : TT . Tutorial | null = this . context . tutorial . get ( )
@@ -205,14 +204,14 @@ class Channel implements Channel {
205
204
} )
206
205
// update the current stepId on startup
207
206
vscode . commands . executeCommand ( COMMANDS . SET_CURRENT_STEP , action . payload . stepId )
208
- return
209
207
} catch ( e ) {
210
208
const error = {
211
209
type : 'UnknownError' ,
212
210
message : `Location: Editor tutorial continue config.\n\n ${ e . message } ` ,
213
211
}
214
212
this . send ( { type : 'CONTINUE_FAILED' , payload : { error } } )
215
213
}
214
+ return
216
215
case 'EDITOR_VALIDATE_SETUP' :
217
216
try {
218
217
// check workspace is selected
@@ -253,14 +252,14 @@ class Channel implements Channel {
253
252
return
254
253
}
255
254
this . send ( { type : 'SETUP_VALIDATED' } )
256
- return
257
255
} catch ( e ) {
258
256
const error = {
259
257
type : 'UknownError' ,
260
258
message : e . message ,
261
259
}
262
260
this . send ( { type : 'VALIDATE_SETUP_FAILED' , payload : { error } } )
263
261
}
262
+ return
264
263
case 'EDITOR_REQUEST_WORKSPACE' :
265
264
openWorkspace ( )
266
265
return
0 commit comments