Skip to content

Commit 11ce844

Browse files
committed
updated schema
1 parent 5d42f7f commit 11ce844

File tree

1 file changed

+39
-3
lines changed

1 file changed

+39
-3
lines changed

demo-time.schema.json

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"$id": "https://elio.dev/demo-time.schema.json",
44
"title": "Demo Time - Schema",
55
"description": "The schema for the Demo Time - VSCode extension",
6-
"lastModified": "2024-01-30",
6+
"lastModified": "2024-12-06",
77
"type": "object",
88
"properties": {
99
"title": {
@@ -17,20 +17,39 @@
1717
"items": {
1818
"type": "object",
1919
"properties": {
20+
"id": {
21+
"type": "string"
22+
},
2023
"title": {
2124
"type": "string"
2225
},
2326
"description": {
2427
"type": "string"
2528
},
29+
"icons": {
30+
"type": "object",
31+
"properties": {
32+
"start": {
33+
"type": "string"
34+
},
35+
"end": {
36+
"type": "string"
37+
}
38+
},
39+
"required": [
40+
"start",
41+
"end"
42+
],
43+
"description": "Provide the icon name of the VS Code codicon for the start and end of the demo"
44+
},
2645
"steps": {
2746
"type": "array",
2847
"items": {
2948
"type": "object",
3049
"properties": {
3150
"action": {
3251
"type": "string",
33-
"enum": ["create", "open", "markdownPreview", "insert", "highlight", "unselect", "replace", "delete", "waitForTimeout", "waitForInput", "executeVSCodeCommand", "showInfoMessage", "executeTerminalCommand"],
52+
"enum": ["create", "open", "markdownPreview", "insert", "highlight", "unselect", "replace", "delete", "waitForTimeout", "waitForInput", "executeVSCodeCommand", "showInfoMessage", "executeTerminalCommand", "snippet"],
3453
"title": "Action to perform"
3554
},
3655
"path": {
@@ -61,9 +80,13 @@
6180
"type": "string",
6281
"title": "The message for the notification"
6382
},
83+
"lineInsertionDelay": {
84+
"type": "number",
85+
"title": "Speed in milliseconds to insert each line. If not defined, the \"demoTime.lineInsertionDelay\" setting will be used. To turn off the line insertion effect, set it to 0."
86+
},
6487
"args": {
6588
"type": ["object", "array", "string", "number", "boolean"],
66-
"title": "Arguments to pass to the command for VSCode"
89+
"title": "Arguments to pass to the command for VSCode or placeholder names for your snippet"
6790
}
6891
},
6992
"required": [
@@ -118,6 +141,19 @@
118141
]
119142
}]
120143
}
144+
}, {
145+
"if": {
146+
"properties": {
147+
"action": {
148+
"const": "snippet"
149+
}
150+
}
151+
},
152+
"then": {
153+
"required": [
154+
"contentPath"
155+
]
156+
}
121157
}, {
122158
"if": {
123159
"properties": {

0 commit comments

Comments
 (0)