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

Commitcc029cf

Browse files
committed
setup reset script
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
1 parentdb94db6 commitcc029cf

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

‎src/channel/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,9 @@ class Channel implements Channel {
319319
case'EDITOR_RUN_TEST':
320320
vscode.commands.executeCommand(COMMANDS.RUN_TEST,action?.payload)
321321
return
322+
case'EDITOR_RUN_RESET_SCRIPT':
323+
// if tutorial.config.reset.command, run it
324+
return
322325
default:
323326
logger(`No match for action type:${actionType}`)
324327
return

‎web-app/src/services/state/actions/editor.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,4 +117,9 @@ export default (editorSend: any) => ({
117117
payload:{position:context.position},
118118
})
119119
},
120+
runResetScript(){
121+
editorSend({
122+
type:'EDITOR_RUN_RESET_SCRIPT',
123+
})
124+
},
120125
})

‎web-app/src/services/state/machine.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,9 @@ export const createMachine = (options: any) => {
168168
RUN_TEST:{
169169
actions:['runTest'],
170170
},
171+
RESET_SCRIPT:{
172+
actions:['runResetScript'],
173+
},
171174
},
172175
},
173176
TestRunning:{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp