|
1 | 1 | import * as T from 'typings' |
2 | 2 | import * as vscode from 'vscode' |
3 | | -import { setupActions, solutionActions } from './actions/onActions' |
4 | 3 | import { COMMANDS } from './commands' |
5 | 4 | import Context from './services/context/context' |
6 | 5 | import logger from './services/logger' |
7 | 6 | import { openWorkspace } from './services/workspace' |
8 | | -import { showOutput } from './services/testRunner/output' |
9 | 7 | import * as actions from './actions' |
10 | 8 |
|
11 | 9 | interface Channel { |
@@ -69,18 +67,17 @@ class Channel implements Channel { |
69 | 67 | await vscode.commands.executeCommand(COMMANDS.SET_CURRENT_POSITION, action.payload.position) |
70 | 68 | await actions.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 | await this.context.progress.syncProgress(action.payload.progress) |
77 | 75 | return |
78 | 76 | case 'EDITOR_OPEN_LOGS': |
79 | | - const channel = action.payload.channel |
80 | | - await showOutput(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) |
|
0 commit comments