From 04b1ed0ff0f8abb39e561e95b9b3a78970cf88e6 Mon Sep 17 00:00:00 2001 From: Yarakashi-Kikohshi Date: Sun, 31 Jul 2022 04:33:54 +0900 Subject: [PATCH 1/2] add configuration of property items --- package.json | 103 +++++++++++++++++++++++++++++++++++---------------- 1 file changed, 72 insertions(+), 31 deletions(-) diff --git a/package.json b/package.json index 7851bb1..d5992a1 100644 --- a/package.json +++ b/package.json @@ -34,37 +34,78 @@ "type": "object", "title": "multi-command", "properties": { - "multiCommand.commands": { - "type": [ - "array", - "object" - ], - "items": { - "type": "object", - "title": "command sequence", - "properties": { - "command": { - "type": "string", - "description": "command name of this command sequence" - }, - "interval": { - "type": "number", - "description": "time interval(milliseconds) between each command execution." - }, - "sequence": { - "type": "array", - "items": { - "type": [ - "string", - "object" - ], - "description": "command sequence which been invoked" - } - } - } - }, - "description": "command sequence list." - } + "multiCommand.commands": { + "type": [ + "array", + "object" + ], + "description": "Command sequence list.", + "items": { + "type": "object", + "title": "Command sequence.", + "properties": { + "command": { + "type": "string", + "description": "Command name of this command sequence." + }, + "interval": { + "type": "number", + "description": "Time interval (milliseconds) between each command execution." + }, + "sequence": { + "type": "array", + "description": "Command sequence which been invoked.", + "items": { + "type": [ + "string", + "object" + ], + "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)" + } + } + } + } } } }, From 96982c82c68bbca7ff951138c44a9c1ee5f36e73 Mon Sep 17 00:00:00 2001 From: Yarakashi-Kikohshi Date: Sun, 31 Jul 2022 04:39:09 +0900 Subject: [PATCH 2/2] fix tab to spaces --- package.json | 144 +++++++++++++++++++++++++-------------------------- 1 file changed, 72 insertions(+), 72 deletions(-) diff --git a/package.json b/package.json index d5992a1..3f0bac8 100644 --- a/package.json +++ b/package.json @@ -34,78 +34,78 @@ "type": "object", "title": "multi-command", "properties": { - "multiCommand.commands": { - "type": [ - "array", - "object" - ], - "description": "Command sequence list.", - "items": { - "type": "object", - "title": "Command sequence.", - "properties": { - "command": { - "type": "string", - "description": "Command name of this command sequence." - }, - "interval": { - "type": "number", - "description": "Time interval (milliseconds) between each command execution." - }, - "sequence": { - "type": "array", - "description": "Command sequence which been invoked.", - "items": { - "type": [ - "string", - "object" - ], - "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)" - } - } - } - } + "multiCommand.commands": { + "type": [ + "array", + "object" + ], + "description": "Command sequence list.", + "items": { + "type": "object", + "title": "Command sequence.", + "properties": { + "command": { + "type": "string", + "description": "Command name of this command sequence." + }, + "interval": { + "type": "number", + "description": "Time interval (milliseconds) between each command execution." + }, + "sequence": { + "type": "array", + "description": "Command sequence which been invoked.", + "items": { + "type": [ + "string", + "object" + ], + "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)" + } + } + } + } } } },