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

Commitb9e7d95

Browse files
committed
fix issue with new tutorial on startup
1 parent9509a15 commitb9e7d95

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

‎src/editor/commands/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export const createCommands = ({ context, machine, storage, git, position }: Cre
6363
const{ steps}=tutorial.data
6464
const{ setup}=steps[pos.stepId].actions
6565
awaitgit.gitLoadCommits(setup)
66+
machine.send('TUTORIAL_LOADED')
6667
},
6768
[COMMANDS.TUTORIAL_SETUP]:async(tutorial:CR.Tutorial)=>{
6869
console.log('tutorial setup',tutorial)

‎src/state/actions/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export default {
3232
constcanContinue=!!(tutorial&&progress&&hasGit&&hasGitRemote)
3333

3434
if(canContinue){
35+
// continue
3536
currentTutorial=tutorial
3637
currentProgress=progress
3738
}
@@ -41,6 +42,7 @@ export default {
4142
asynctutorialLaunch(){
4243
// TODO: add selection of tutorial id
4344
consttutorial:CR.Tutorial=awaitapi({resource:'getTutorial',params:{id:'1'}})
45+
currentTutorial=tutorial
4446
console.log('api')
4547
console.log(tutorial)
4648
vscode.commands.executeCommand('coderoad.tutorial_launch',tutorial)
@@ -151,5 +153,11 @@ export default {
151153
}),
152154
stepLoadNext(){
153155
console.log("LOAD NEXT STEP")
156+
},
157+
loadLevel(){
158+
console.log('loadLevel')
159+
},
160+
loadStage(){
161+
console.log('loadStage')
154162
}
155163
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp