File tree Expand file tree Collapse file tree 2 files changed +7
-13
lines changed Expand file tree Collapse file tree 2 files changed +7
-13
lines changed Original file line number Diff line number Diff line change 1- // import * as CR from 'typings'
21import * as G from 'typings/graphql'
3- // import {TutorialModel} from '../services/tutorial'
4- // import {gitLoadCommits, gitClear} from '../services/git'
5-
6- const solutionActions = async ( stepActions : G . StepActions ) : Promise < void > => {
7- // TODO: should load same as commits
8-
9- // const step: G.Step = tutorialModel.step()
10- // const solution = step.solution
11-
12- // await gitClear()
13- // await gitLoadCommits(solution, dispatch)
2+ import * as vscode from 'vscode'
3+ import * as git from '../services/git'
4+ import setupActions from './setupActions'
145
6+ const solutionActions = async ( workspaceRoot : vscode . WorkspaceFolder , stepActions : G . StepActions ) : Promise < void > => {
7+ await git . clear ( )
8+ setupActions ( workspaceRoot , stepActions )
159}
1610
1711export default solutionActions
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ class Channel implements Channel {
105105 return
106106 // load solution step actions (git commits, commands, open files)
107107 case 'SOLUTION_ACTIONS' :
108- solutionActions ( action . payload )
108+ solutionActions ( this . workspaceRoot , action . payload )
109109 return
110110
111111 default :
You can’t perform that action at this time.
0 commit comments