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

Commit367da8c

Browse files
committed
run test on hot key enter
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
1 parent8761cfa commit367da8c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

‎src/editor/commands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export const createCommands = ({ extensionPath, workspaceState }: CreateCommandP
105105
testRunner({position:currentPosition,onSuccess:callbacks?.onSuccess, subtasks})
106106
},
107107
[COMMANDS.ENTER]:()=>{
108-
console.log('KEY: ctrl+enter')
108+
webview.send({type:'KEY_PRESS_ENTER'})
109109
},
110110
}
111111
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,9 @@ export const createMachine = (options: any) => {
171171
RUN_RESET:{
172172
actions:['runReset'],
173173
},
174+
KEY_PRESS_ENTER:{
175+
actions:['runTest'],
176+
},
174177
},
175178
},
176179
TestRunning:{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp