@@ -2,29 +2,31 @@ import * as vscode from 'vscode'
22import start from './start'
33import ReactPanel from '../views/createWebview'
44
5- // import runTest from './runTest'
5+ import runTest from './runTest'
66// import loadSolution from './loadSolution'
77// import quit from './quit'
88
99const COMMANDS = {
1010 // TUTORIAL_SETUP: 'coderoad.tutorial_setup',
1111 START : 'coderoad.start' ,
12- OPEN_WEBVIEW : 'coderoad.open_webview'
13- // RUN_TEST: 'coderoad.test_run',
12+ OPEN_WEBVIEW : 'coderoad.open_webview' ,
13+ RUN_TEST : 'coderoad.test_run' ,
1414 // LOAD_SOLUTION: 'coderoad.solution_load',
1515 // QUIT: 'coderoad.quit',
1616}
1717
1818
1919export default ( context : vscode . ExtensionContext ) : void => {
2020 const commands = {
21- [ COMMANDS . START ] : async function startCommand ( ) : Promise < void > {
22- return start ( context )
21+ [ COMMANDS . START ] : ( ) = > {
22+ start ( context )
2323 } ,
2424 [ COMMANDS . OPEN_WEBVIEW ] : ( ) => {
2525 ReactPanel . createOrShow ( context . extensionPath ) ;
2626 } ,
27- // [COMMANDS.RUN_TEST]: runTest,
27+ [ COMMANDS . RUN_TEST ] : ( ) => {
28+ runTest ( )
29+ } ,
2830 // [COMMANDS.LOAD_SOLUTION]: loadSolution,
2931 // [COMMANDS.QUIT]: () => quit(context.subscriptions),
3032 }
0 commit comments