-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
195 lines (194 loc) · 5.95 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
{
"name": "action-buttons-ext",
"displayName": "VSCode Action Buttons Ext",
"description": "Add customizable buttons to the status bar to execute commands in terminal or short-cut actions",
"version": "0.1.1",
"icon": "images/logo-128.png",
"license": "SEE LICENSE IN LICENSE",
"publisher": "jkearins",
"bugs": {
"url": "https://github.com/jkearins/vscode-action-buttons/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/jkearins/vscode-action-buttons.git"
},
"engines": {
"vscode": "^1.63.0"
},
"categories": [
"Other"
],
"keywords": [
"action",
"buttons",
"esp-idf",
"status bar",
"terminal"
],
"activationEvents": [
"*"
],
"main": "./out/extension",
"contributes": {
"commands": [
{
"command": "extension.refreshButtons",
"title": "Refresh Action Buttons"
}
],
"configuration": {
"type": "object",
"title": "VSCode Action Buttons",
"properties": {
"actionButtons": {
"type": "object",
"additionalProperties": false,
"default": {
"commands": [],
"defaultColor": "white",
"reloadButton": "↻",
"loadNpmCommands": false
},
"properties": {
"commands": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"name",
"command"
],
"properties": {
"name": {
"type": "string",
"markdownDescription": "Name of the action button"
},
"command": {
"type": "string",
"markdownDescription": "Command to execute when action is activated.\n\nIf `useVsCodeApi` is `true`, this is the VS Code command to execute. Otherwise, this specifies the command to execute in the terminal"
},
"tooltip": {
"type": "string",
"markdownDescription": "Tooltip text to display when hovering over the button"
},
"color": {
"type": "string",
"markdownDescription": "Specifies the action button text color"
},
"cwd": {
"type": "string",
"markdownDescription": "Start directory when executing terminal command\n\nOnly valid when `useVsCodeApi` is `false`"
},
"singleInstance": {
"type": "boolean",
"default": false,
"markdownDescription": "Reopen associated terminal each time this action is activated\n\nOnly valid when `useVsCodeApi` is `false`"
},
"focus": {
"type": "boolean",
"default": false,
"markdownDescription": "Focus the terminal after executing the command.\n\nOnly valid when `useVsCodeApi` is `false`"
},
"useVsCodeApi": {
"type": "boolean",
"default": false,
"markdownDescription": "Specifies whether to execute a VS Code command or terminal command"
},
"args": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"markdownDescription": "List of arguments passed to VS Code command\n\nOnly valid when `useVsCodeApi` is `true`"
},
"ignoreCwd": {
"type": "boolean",
"default": false,
"markdownDescription": "Specifies whether to ignore `cwd` parameter while creating a terminal"
},
"ignoreClear": {
"type": "boolean",
"default": false,
"markdownDescription": "Specifies whether to send builtin `clear` command to the terminal before the user defined `command`"
},
"extraCommands": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"markdownDescription": "Specifies additional commands to be sent to the terminal just after the user defined `command`"
},
"terminalName": {
"type": "string",
"markdownDescription": "Specifies the terminal name in which the command(s) to be executed\n\nIf there is no runnig terminal with such name than new terminal with name `terminalName` will be created"
},
"timeoutAfterCreate": {
"type": "number",
"default": 0,
"markdownDescription": "Specifies timeout in milliseconds between creating a new terminal and sending a command to it\n\nIf terminal already exists no timeout inserted"
}
}
}
},
"defaultColor": {
"type": "string",
"required": false,
"default": "white",
"markdownDescription": "Default color to use for action button text"
},
"reloadButton": {
"type": [
"string",
"null"
],
"required": false,
"default": "↻",
"markdownDescription": "Reload button text. If `null`, button is disabled"
},
"loadNpmCommands": {
"type": "boolean",
"required": false,
"default": false,
"markdownDescription": "Specifies whether to automatically generate buttons from npm commands listed in `package.json`"
},
"customVars": {
"type": "object",
"additionalProperties": true,
"items": {
"type": "string"
},
"default": {},
"markdownDescription": "List of user defined config options\n\nCan be used in commands for terminal in form like ${var}"
}
}
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"publish": "vsce publish",
"test": "node ./node_modules/vscode/bin/test"
},
"devDependencies": {
"@types/vscode": "^1.63.0",
"@types/glob": "^7.2.0",
"@types/mocha": "^9.0.0",
"@types/node": "14.x",
"@typescript-eslint/eslint-plugin": "^5.9.1",
"@typescript-eslint/parser": "^5.9.1",
"eslint": "^8.6.0",
"glob": "^7.2.0",
"mocha": "^9.1.3",
"typescript": "^4.5.4",
"@vscode/test-electron": "^2.0.3"
}
}