Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf9660fd

Browse files
committed
add editor solution actions
1 parent6b14921 commitf9660fd

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

‎src/actions/solutionActions.ts

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
1-
// import * as CR from 'typings'
21
import*asGfrom'typings/graphql'
3-
// import {TutorialModel} from '../services/tutorial'
4-
// import {gitLoadCommits, gitClear} from '../services/git'
5-
6-
constsolutionActions=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*asvscodefrom'vscode'
3+
import*asgitfrom'../services/git'
4+
importsetupActionsfrom'./setupActions'
145

6+
constsolutionActions=async(workspaceRoot:vscode.WorkspaceFolder,stepActions:G.StepActions):Promise<void>=>{
7+
awaitgit.clear()
8+
setupActions(workspaceRoot,stepActions)
159
}
1610

1711
exportdefaultsolutionActions

‎src/channel/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp