Skip to content

Commit 3e3a38d

Browse files
committed
run test following solution load
1 parent 14fa26e commit 3e3a38d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/actions/solutionActions.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import setupActions from './setupActions'
55

66
const solutionActions = async (workspaceRoot: vscode.WorkspaceFolder, stepActions: G.StepActions): Promise<void> => {
77
await git.clear()
8-
setupActions(workspaceRoot, stepActions)
8+
return setupActions(workspaceRoot, stepActions)
99
}
1010

1111
export default solutionActions

src/channel/index.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ class Channel implements Channel {
105105
return
106106
// load solution step actions (git commits, commands, open files)
107107
case 'SOLUTION_ACTIONS':
108-
solutionActions(this.workspaceRoot, action.payload)
108+
await solutionActions(this.workspaceRoot, action.payload)
109+
// run test following solution to update position
110+
vscode.commands.executeCommand('coderoad.run_test', action.payload)
109111
return
110112

111113
default:

0 commit comments

Comments
 (0)