Skip to content

Feature/key bindings #391

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jul 18, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
run test on hot key enter
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
  • Loading branch information
ShMcK committed Jul 18, 2020
commit 367da8c0f7bf8267615c041adadf32bfcaabed24
2 changes: 1 addition & 1 deletion src/editor/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export const createCommands = ({ extensionPath, workspaceState }: CreateCommandP
testRunner({ position: currentPosition, onSuccess: callbacks?.onSuccess, subtasks })
},
[COMMANDS.ENTER]: () => {
console.log('KEY: ctrl+enter')
webview.send({ type: 'KEY_PRESS_ENTER' })
},
}
}
3 changes: 3 additions & 0 deletions web-app/src/services/state/machine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ export const createMachine = (options: any) => {
RUN_RESET: {
actions: ['runReset'],
},
KEY_PRESS_ENTER: {
actions: ['runTest'],
},
},
},
TestRunning: {
Expand Down