File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
web-app/src/services/state/actions Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -55,12 +55,13 @@ class Channel implements Channel {
5555 openWorkspace ( )
5656 return
5757 // load step actions (git commits, commands, open files)
58- case 'SETUP_ACTIONS' :
58+ case 'EDITOR_LEVEL_ENTER' :
59+ case 'EDITOR_STEP_ENTER' :
5960 await vscode . commands . executeCommand ( COMMANDS . SET_CURRENT_POSITION , action . payload . position )
6061 hooks . onSetupEnter ( action . payload . actions )
6162 return
6263 // load solution step actions (git commits, commands, open files)
63- case 'SOLUTION_ACTIONS ' :
64+ case 'EDITOR_SOLUTION_ENTER ' :
6465 await vscode . commands . executeCommand ( COMMANDS . SET_CURRENT_POSITION , action . payload . position )
6566 hooks . onSolutionEnter ( action . payload . actions )
6667 return
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ export default (editorSend: any) => ({
3232 const step : TT . Step | null = selectors . currentStep ( context )
3333 // load step actions
3434 editorSend ( {
35- type : 'SETUP_ACTIONS ' ,
35+ type : 'EDITOR_LEVEL_ENTER ' ,
3636 payload : {
3737 position : {
3838 stepId : step ?. id || null ,
@@ -48,7 +48,7 @@ export default (editorSend: any) => ({
4848 if ( step && step . setup ) {
4949 // load step actions
5050 editorSend ( {
51- type : 'SETUP_ACTIONS ' ,
51+ type : 'EDITOR_STEP_ENTER ' ,
5252 payload : {
5353 // set position here
5454 position : {
@@ -76,7 +76,7 @@ export default (editorSend: any) => ({
7676 // tell editor to load solution commit
7777 if ( step && step . solution ) {
7878 editorSend ( {
79- type : 'SOLUTION_ACTIONS ' ,
79+ type : 'EDITOR_SOLUTION_ENTER ' ,
8080 payload : {
8181 position : {
8282 stepId : step . id ,
You can’t perform that action at this time.
0 commit comments