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

Commit78e1467

Browse files
committed
notify on pass fail
1 parent05e45d4 commit78e1467

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

‎src/state/actions/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ export default {
8888
testStart(){
8989
vscode.commands.executeCommand('coderoad.run_test')
9090
},
91+
testPass(){
92+
vscode.window.showWarningMessage('FAIL')
93+
},
94+
testFail(){
95+
vscode.window.showWarningMessage('FAIL')
96+
},
9197
//@ts-ignore
9298
stepComplete:assign({
9399
progress:(context:CR.MachineContext):CR.Progress=>{

‎src/state/machine.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export const machine = Machine<
116116
},
117117
},
118118
TestPass:{
119-
onEntry:['stepComplete'],
119+
onEntry:['testPass','stepComplete'],
120120
on:{
121121
NEXT:[
122122
{
@@ -130,6 +130,7 @@ export const machine = Machine<
130130
},
131131
},
132132
TestFail:{
133+
onEntry:['testFail'],
133134
after:{
134135
0:'StageNormal'
135136
},

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp