File tree 4 files changed +59
-13
lines changed
4 files changed +59
-13
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,25 @@ export default {
47
47
type : "string" ,
48
48
} ,
49
49
} ,
50
+ vscode_command_array : {
51
+ type : "array" ,
52
+ description :
53
+ "An array of VSCode commands that can be called using the vscode commands API." ,
54
+ items : {
55
+ anyOf : [
56
+ {
57
+ type : "string" ,
58
+ description : "A VSCode command without params" ,
59
+ } ,
60
+ {
61
+ type : "array" ,
62
+ description : "A VSCode command with params" ,
63
+ minLength : 2 ,
64
+ maxLength : 2 ,
65
+ } ,
66
+ ] ,
67
+ } ,
68
+ } ,
50
69
commit_array : {
51
70
type : "array" ,
52
71
description :
@@ -105,6 +124,9 @@ export default {
105
124
commands : {
106
125
$ref : "#/definitions/command_array" ,
107
126
} ,
127
+ vscodeCommands : {
128
+ $ref : "#/definitions/vscode_command_array" ,
129
+ } ,
108
130
watchers : {
109
131
type : "array" ,
110
132
items : {
Original file line number Diff line number Diff line change @@ -56,9 +56,20 @@ export default {
56
56
required : [ "command" , "args" ] ,
57
57
} ,
58
58
setup : {
59
- $ref : "#/definitions/setup_action_without_commits " ,
59
+ type : "object " ,
60
60
description :
61
- "Setup actions or commands used for setting up the test runner on tutorial launch" ,
61
+ "Setup commits or commands used for setting up the test runner on tutorial launch" ,
62
+ properties : {
63
+ commits : {
64
+ $ref : "#/definitions/commit_array" ,
65
+ } ,
66
+ commands : {
67
+ $ref : "#/definitions/command_array" ,
68
+ } ,
69
+ vscodeCommands : {
70
+ $ref : "#/definitions/vscode_command_array" ,
71
+ } ,
72
+ } ,
62
73
} ,
63
74
repo : {
64
75
type : "object" ,
@@ -84,10 +95,11 @@ export default {
84
95
type : "object" ,
85
96
description : "Configuration options for resetting a tutorial" ,
86
97
properties : {
87
- command : {
88
- type : "string" ,
89
- description : "An optional command to run on reset" ,
90
- examples : [ "npm install" ] ,
98
+ commands : {
99
+ $ref : "#/definitions/command_array" ,
100
+ } ,
101
+ vscodeCommands : {
102
+ $ref : "#/definitions/vscode_command_array" ,
91
103
} ,
92
104
} ,
93
105
additionalProperties : false ,
Original file line number Diff line number Diff line change @@ -75,9 +75,20 @@ export default {
75
75
required : [ "command" , "args" ] ,
76
76
} ,
77
77
setup : {
78
- $ref : "#/definitions/setup_action " ,
78
+ type : "object " ,
79
79
description :
80
80
"Setup commits or commands used for setting up the test runner on tutorial launch" ,
81
+ properties : {
82
+ commits : {
83
+ $ref : "#/definitions/commit_array" ,
84
+ } ,
85
+ commands : {
86
+ $ref : "#/definitions/command_array" ,
87
+ } ,
88
+ vscodeCommands : {
89
+ $ref : "#/definitions/vscode_command_array" ,
90
+ } ,
91
+ } ,
81
92
} ,
82
93
repo : {
83
94
type : "object" ,
@@ -103,10 +114,11 @@ export default {
103
114
type : "object" ,
104
115
description : "Configuration options for resetting a tutorial" ,
105
116
properties : {
106
- command : {
107
- type : "string" ,
108
- description : "An optional command to run on reset" ,
109
- examples : [ "npm install" ] ,
117
+ commands : {
118
+ $ref : "#/definitions/command_array" ,
119
+ } ,
120
+ vscodeCommands : {
121
+ $ref : "#/definitions/vscode_command_array" ,
110
122
} ,
111
123
} ,
112
124
additionalProperties : false ,
Original file line number Diff line number Diff line change @@ -999,7 +999,7 @@ Description.
999
999
branch : "aBranch" ,
1000
1000
} ,
1001
1001
reset : {
1002
- command : "some command" ,
1002
+ commands : [ "some command" ] ,
1003
1003
} ,
1004
1004
dependencies : [
1005
1005
{
@@ -1035,7 +1035,7 @@ Description.
1035
1035
branch : "aBranch" ,
1036
1036
} ,
1037
1037
reset : {
1038
- command : "some command" ,
1038
+ commands : [ "some command" ] ,
1039
1039
} ,
1040
1040
dependencies : [
1041
1041
{
You can’t perform that action at this time.
0 commit comments