|
1 | 1 | import*asTfrom'typings' |
2 | 2 | import*asvscodefrom'vscode' |
3 | | -import{setupActions,solutionActions}from'./actions/onActions' |
4 | 3 | import{COMMANDS}from'./commands' |
5 | 4 | importContextfrom'./services/context/context' |
6 | 5 | importloggerfrom'./services/logger' |
7 | 6 | import{openWorkspace}from'./services/workspace' |
8 | | -import{showOutput}from'./services/testRunner/output' |
9 | 7 | import*asactionsfrom'./actions' |
10 | 8 |
|
11 | 9 | interfaceChannel{ |
@@ -69,18 +67,17 @@ class Channel implements Channel { |
69 | 67 | awaitvscode.commands.executeCommand(COMMANDS.SET_CURRENT_POSITION,action.payload.position) |
70 | 68 | awaitactions.onSolutionActions({actions:action.payload.actions,send:this.send}) |
71 | 69 | // run test following solution to update position |
72 | | -vscode.commands.executeCommand(COMMANDS.RUN_TEST) |
| 70 | +actions.onRunTest() |
73 | 71 | return |
74 | 72 | case'EDITOR_SYNC_PROGRESS': |
75 | 73 | // update progress when a level is deemed complete in the client |
76 | 74 | awaitthis.context.progress.syncProgress(action.payload.progress) |
77 | 75 | return |
78 | 76 | case'EDITOR_OPEN_LOGS': |
79 | | -constchannel=action.payload.channel |
80 | | -awaitshowOutput(channel) |
| 77 | +actions.onOpenLogs(action) |
81 | 78 | return |
82 | 79 | case'EDITOR_RUN_TEST': |
83 | | -vscode.commands.executeCommand(COMMANDS.RUN_TEST,action?.payload) |
| 80 | +actions.onRunTest(action) |
84 | 81 | return |
85 | 82 | case'EDITOR_RUN_RESET': |
86 | 83 | actions.onRunReset(this.context) |
|