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

Commita4418b1

Browse files
committed
rename rest to 'latestReset'
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
1 parent31601fd commita4418b1

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

‎src/actions/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export { default as onStartup } from './onStartup'
22
export{defaultasonTutorialConfig}from'./onTutorialConfig'
33
export{defaultasonTutorialContinueConfig}from'./onTutorialContinueConfig'
44
export{defaultasonValidateSetup}from'./onValidateSetup'
5-
export{defaultasonRunReset}from'./onRunReset'
5+
export{defaultasonRunLatestReset}from'./onRunLatestReset'
66
export{defaultasonErrorPage}from'./onErrorPage'
77
export{onRunTest,onTestPass}from'./onTest'
88
export{onSetupActions,onSolutionActions}from'./onActions'

‎src/actions/onRunReset.tsrenamed to‎src/actions/onRunLatestReset.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import { exec } from '../services/node'
55
importresetfrom'../services/reset'
66
importgetLastCommitHashfrom'../services/reset/lastHash'
77

8-
constonRunReset=async(context:Context)=>{
8+
// reset to the start of the last test
9+
constonRunLatestReset=async(context:Context)=>{
910
// reset to timeline
1011
consttutorial:TT.Tutorial|null=context.tutorial.get()
1112
constposition:T.Position=context.position.get()
@@ -29,4 +30,4 @@ const onRunReset = async (context: Context) => {
2930
}
3031
}
3132

32-
exportdefaultonRunReset
33+
exportdefaultonRunLatestReset

‎src/channel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class Channel implements Channel {
8080
actions.onRunTest(action)
8181
return
8282
case'EDITOR_RUN_RESET':
83-
actions.onRunReset(this.context)
83+
actions.onRunLatestReset(this.context)
8484
return
8585
default:
8686
logger(`No match for action type:${actionType}`)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp