Skip to content

Commit

Permalink
updated schema
Browse files Browse the repository at this point in the history
  • Loading branch information
estruyf committed Dec 6, 2024
1 parent 5d42f7f commit 11ce844
Showing 1 changed file with 39 additions and 3 deletions.
42 changes: 39 additions & 3 deletions demo-time.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"$id": "https://elio.dev/demo-time.schema.json",
"title": "Demo Time - Schema",
"description": "The schema for the Demo Time - VSCode extension",
"lastModified": "2024-01-30",
"lastModified": "2024-12-06",
"type": "object",
"properties": {
"title": {
Expand All @@ -17,20 +17,39 @@
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"icons": {
"type": "object",
"properties": {
"start": {
"type": "string"
},
"end": {
"type": "string"
}
},
"required": [
"start",
"end"
],
"description": "Provide the icon name of the VS Code codicon for the start and end of the demo"
},
"steps": {
"type": "array",
"items": {
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": ["create", "open", "markdownPreview", "insert", "highlight", "unselect", "replace", "delete", "waitForTimeout", "waitForInput", "executeVSCodeCommand", "showInfoMessage", "executeTerminalCommand"],
"enum": ["create", "open", "markdownPreview", "insert", "highlight", "unselect", "replace", "delete", "waitForTimeout", "waitForInput", "executeVSCodeCommand", "showInfoMessage", "executeTerminalCommand", "snippet"],
"title": "Action to perform"
},
"path": {
Expand Down Expand Up @@ -61,9 +80,13 @@
"type": "string",
"title": "The message for the notification"
},
"lineInsertionDelay": {
"type": "number",
"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."
},
"args": {
"type": ["object", "array", "string", "number", "boolean"],
"title": "Arguments to pass to the command for VSCode"
"title": "Arguments to pass to the command for VSCode or placeholder names for your snippet"
}
},
"required": [
Expand Down Expand Up @@ -118,6 +141,19 @@
]
}]
}
}, {
"if": {
"properties": {
"action": {
"const": "snippet"
}
}
},
"then": {
"required": [
"contentPath"
]
}
}, {
"if": {
"properties": {
Expand Down

0 comments on commit 11ce844

Please sign in to comment.