Skip to content
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

Add configuration of property items #67

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 47 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,31 +39,72 @@
"array",
"object"
],
"description": "Command sequence list.",
"items": {
"type": "object",
"title": "command sequence",
"title": "Command sequence.",
"properties": {
"command": {
"type": "string",
"description": "command name of this command sequence"
"description": "Command name of this command sequence."
},
"interval": {
"type": "number",
"description": "time interval(milliseconds) between each command execution."
"description": "Time interval (milliseconds) between each command execution."
},
"sequence": {
"type": "array",
"description": "Command sequence which been invoked.",
"items": {
"type": [
"string",
"object"
],
"description": "command sequence which been invoked"
"properties": {
"command": {
"type": "string",
"description": "Command ID provided by VS Code or extensions."
},
"args": {
"type": "object",
"description": "Arguments of command."
},
"onSuccess": {
"type": "array",
"description": "Excuted when the previous command ends with a success."
},
"onFail": {
"type": "array",
"description": "Excuted when the previous command ends with an error."
},
"variableSubstitution": {
"type": "boolean",
"description": "Set to true if you want to use variable substitution starting with $ in args.",
"enum": [true, false],
"default": false
},
"repeat": {
"type": "number",
"description": "Number of times command is repeated.",
"default": 1
}
}
}
},
"languages": {
"type": "array",
"description": "Only visible in the command palette when a document in the specified language is opened. If not specified, it applies to all languages."
},
"label": {
"type": "string",
"description": "Label displayed in command palette when calling command sequence manually."
},
"description": {
"type": "string",
"description": "Description displayed in command palette when calling command sequence manually. (dimmed)"
}
}
},
"description": "command sequence list."
}
}
}
}
Expand Down