-
Notifications
You must be signed in to change notification settings - Fork 11
/
package.json
459 lines (459 loc) · 18.2 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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
{
"name": "ev3dev-browser",
"displayName": "ev3dev-browser",
"description": "Browse for ev3dev devices",
"icon": "resources/icons/ev3dev-logo.png",
"version": "1.2.1",
"publisher": "ev3dev",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/ev3dev/vscode-ev3dev-browser.git"
},
"bugs": {
"url": "https://github.com/ev3dev/vscode-ev3dev-browser/issues"
},
"engines": {
"vscode": "^1.39.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onView:ev3devBrowser",
"onDebugResolve:ev3devBrowser",
"onCommand:ev3devBrowser.action.pickDevice"
],
"main": "./out/main.js",
"contributes": {
"configuration": {
"title": "ev3dev browser configuration",
"properties": {
"ev3devBrowser.password": {
"scope": "window",
"type": [
"string",
"null"
],
"default": "maker",
"description": "The password for the 'robot' user. Set to \"null\" to prompt for password (or use public key authentication)."
},
"ev3devBrowser.env": {
"scope": "window",
"type": "object",
"patternProperties": {
"[A-Za-z0-9_]{1,}": {
"type": "string"
}
},
"additionalProperties": false,
"default": {
"PYTHONUNBUFFERED": "TRUE"
},
"description": "Addition environment variables to use on remote devices.",
"uniqueItems": true
},
"ev3devBrowser.interactiveTerminal.env": {
"scope": "window",
"type": "object",
"patternProperties": {
"[A-Za-z0-9_]{1,}": {
"type": "string"
}
},
"additionalProperties": false,
"default": {
"PYTHONINSPECT": "TRUE",
"MICROPYINSPECT": "TRUE"
},
"description": "Addition environment variables to use on remote devices only when using the interactive terminal that is started by the debugger.",
"uniqueItems": true
},
"ev3devBrowser.download.include": {
"scope": "resource",
"type": "string",
"default": "**/*",
"description": "Files to include when sending project to remote devices."
},
"ev3devBrowser.download.exclude": {
"scope": "resource",
"type": "string",
"default": "**/.*",
"description": "Files to exclude when sending project to remote devices."
},
"ev3devBrowser.download.directory": {
"scope": "resource",
"type": [
"string",
"null"
],
"default": null,
"description": "The directory on the remote device where the files will be saved. The default is to use the name of the vscode project directory."
},
"ev3devBrowser.confirmDelete": {
"scope": "application",
"type": "boolean",
"default": true,
"description": "Prompt for confirmation before deleting remote files."
},
"ev3devBrowser.additionalDevices": {
"scope": "machine",
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"pattern": "[a-zA-Z0-9_\\-]{1,}"
},
"ipAddress": {
"type": "string",
"pattern": "\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?"
},
"username": {
"type": "string",
"pattern": "[a-zA-Z0-9_\\-]{1,}",
"default": "robot"
},
"homeDirectory": {
"type": "string",
"default": "/home/robot"
}
},
"required": [
"name",
"ipAddress"
]
},
"uniqueItems": true,
"default": [],
"description": "A list of devices to add to the pick list. This is intended to work around troublesome network connections, such as Bluetooth"
},
"ev3devBrowser.connectTimeout": {
"scope": "application",
"type": "integer",
"default": 30,
"description": "Device connection timeout in seconds."
}
}
},
"commands": [
{
"command": "ev3devBrowser.deviceTreeItem.openSshTerminal",
"title": "Open SSH Terminal"
},
{
"command": "ev3devBrowser.deviceTreeItem.captureScreenshot",
"title": "Take Screenshot"
},
{
"command": "ev3devBrowser.deviceTreeItem.showSysinfo",
"title": "Get system info"
},
{
"command": "ev3devBrowser.deviceTreeItem.reconnect",
"title": "Reconnect"
},
{
"command": "ev3devBrowser.deviceTreeItem.connectNew",
"title": "Connect to a different device"
},
{
"command": "ev3devBrowser.deviceTreeItem.disconnect",
"title": "Disconnect"
},
{
"command": "ev3devBrowser.fileTreeItem.run",
"title": "Run"
},
{
"command": "ev3devBrowser.fileTreeItem.runInTerminal",
"title": "Run in interactive terminal"
},
{
"command": "ev3devBrowser.fileTreeItem.delete",
"title": "Delete"
},
{
"command": "ev3devBrowser.fileTreeItem.showInfo",
"title": "Show Info"
},
{
"command": "ev3devBrowser.fileTreeItem.upload",
"title": "Upload"
},
{
"command": "ev3devBrowser.action.pickDevice",
"title": "Connect to a device",
"category": "ev3dev"
},
{
"command": "ev3devBrowser.action.download",
"title": "Send workspace to device",
"icon": {
"dark": "resources/icons/dark/download.svg",
"light": "resources/icons/light/download.svg"
},
"category": "ev3dev"
},
{
"command": "ev3devBrowser.action.refresh",
"title": "Refresh",
"icon": {
"dark": "resources/icons/dark/refresh.svg",
"light": "resources/icons/light/refresh.svg"
},
"category": "ev3dev"
}
],
"debuggers": [
{
"type": "ev3devBrowser",
"label": "ev3dev",
"program": "./out/debugServer.js",
"runtime": "node",
"languages": [
"python"
],
"configurationAttributes": {
"launch": {
"required": [
"program"
],
"properties": {
"program": {
"type": "string",
"description": "Absolute path to an executable file on the remote device.",
"default": "/home/robot/myproject/myprogram"
},
"interactiveTerminal": {
"type": "boolean",
"description": "When true, program will be run in a new interactive terminal, when false the output pane will be used instead.",
"default": false
}
}
}
},
"configurationSnippets": [
{
"label": "ev3dev: Download and Run",
"description": "Configuration for downloading and running a program on an ev3dev device.",
"body": {
"name": "Download and Run",
"type": "ev3devBrowser",
"request": "launch",
"program": "^\"/home/robot/\\${workspaceFolderBasename}/${1:myprogram}\"",
"interactiveTerminal": false
}
}
],
"initialConfigurations": [
{
"name": "Download and Run current file",
"type": "ev3devBrowser",
"request": "launch",
"program": "/home/robot/${workspaceFolderBasename}/${relativeFile}",
"interactiveTerminal": true
},
{
"name": "Download and Run my-program",
"type": "ev3devBrowser",
"request": "launch",
"program": "/home/robot/${workspaceFolderBasename}/my-program (replace 'my-program' with the actual path)",
"interactiveTerminal": true
}
]
}
],
"menus": {
"commandPalette": [
{
"command": "ev3devBrowser.action.pickDevice"
},
{
"command": "ev3devBrowser.action.download",
"when": "ev3devBrowser.context.connected"
},
{
"command": "ev3devBrowser.action.refresh",
"when": "ev3devBrowser.context.connected"
},
{
"command": "ev3devBrowser.deviceTreeItem.openSshTerminal",
"when": "false"
},
{
"command": "ev3devBrowser.deviceTreeItem.captureScreenshot",
"when": "false"
},
{
"command": "ev3devBrowser.deviceTreeItem.showSysinfo",
"when": "false"
},
{
"command": "ev3devBrowser.deviceTreeItem.reconnect",
"when": "false"
},
{
"command": "ev3devBrowser.deviceTreeItem.connectNew",
"when": "false"
},
{
"command": "ev3devBrowser.deviceTreeItem.disconnect",
"when": "false"
},
{
"command": "ev3devBrowser.fileTreeItem.run",
"when": "false"
},
{
"command": "ev3devBrowser.fileTreeItem.runInTerminal",
"when": "false"
},
{
"command": "ev3devBrowser.fileTreeItem.delete",
"when": "false"
},
{
"command": "ev3devBrowser.fileTreeItem.showInfo",
"when": "false"
},
{
"command": "ev3devBrowser.fileTreeItem.upload",
"when": "false"
}
],
"view/title": [
{
"command": "ev3devBrowser.action.refresh",
"group": "navigation",
"when": "view == ev3devBrowser && ev3devBrowser.context.connected"
},
{
"command": "ev3devBrowser.action.download",
"group": "navigation",
"when": "view == ev3devBrowser && ev3devBrowser.context.connected"
}
],
"view/item/context": [
{
"command": "ev3devBrowser.deviceTreeItem.reconnect",
"when": "view == ev3devBrowser && viewItem == ev3devBrowser.device.disconnected",
"group": "group@0"
},
{
"command": "ev3devBrowser.deviceTreeItem.connectNew",
"when": "view == ev3devBrowser && viewItem == ev3devBrowser.device.disconnected",
"group": "group@1"
},
{
"command": "ev3devBrowser.deviceTreeItem.disconnect",
"when": "view == ev3devBrowser && viewItem == ev3devBrowser.device.connected",
"group": "secondary@9"
},
{
"command": "ev3devBrowser.deviceTreeItem.openSshTerminal",
"when": "view == ev3devBrowser && viewItem == ev3devBrowser.device.connected",
"group": "primary@1"
},
{
"command": "ev3devBrowser.deviceTreeItem.captureScreenshot",
"when": "view == ev3devBrowser && viewItem == ev3devBrowser.device.connected",
"group": "primary@2"
},
{
"command": "ev3devBrowser.deviceTreeItem.showSysinfo",
"when": "view == ev3devBrowser && viewItem == ev3devBrowser.device.connected",
"group": "primary@3"
},
{
"command": "ev3devBrowser.fileTreeItem.run",
"when": "view == ev3devBrowser && viewItem == ev3devBrowser.file.executable",
"group": "group@1"
},
{
"command": "ev3devBrowser.fileTreeItem.runInTerminal",
"when": "view == ev3devBrowser && viewItem == ev3devBrowser.file.executable",
"group": "group@1"
},
{
"command": "ev3devBrowser.fileTreeItem.delete",
"when": "view == ev3devBrowser && viewItem == ev3devBrowser.file",
"group": "group@5"
},
{
"command": "ev3devBrowser.fileTreeItem.delete",
"when": "view == ev3devBrowser && viewItem == ev3devBrowser.file.executable",
"group": "group@5"
},
{
"command": "ev3devBrowser.fileTreeItem.delete",
"when": "view == ev3devBrowser && viewItem == ev3devBrowser.file.folder",
"group": "group@5"
},
{
"command": "ev3devBrowser.fileTreeItem.upload",
"when": "view == ev3devBrowser && viewItem == ev3devBrowser.file.executable",
"group": "group@9"
},
{
"command": "ev3devBrowser.fileTreeItem.upload",
"when": "view == ev3devBrowser && viewItem == ev3devBrowser.file",
"group": "group@9"
},
{
"command": "ev3devBrowser.fileTreeItem.showInfo",
"when": "view == ev3devBrowser && viewItem == ev3devBrowser.file.executable",
"group": "group@10"
},
{
"command": "ev3devBrowser.fileTreeItem.showInfo",
"when": "view == ev3devBrowser && viewItem == ev3devBrowser.file",
"group": "group@10"
}
]
},
"views": {
"explorer": [
{
"id": "ev3devBrowser",
"name": "ev3dev device browser"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run esbuild-base -- --minify",
"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node",
"esbuild": "npm run esbuild-base -- --sourcemap",
"esbuild-watch": "npm run esbuild-base -- --sourcemap --watch",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"test": "npm run compile && node ./node_modules/vscode/bin/test"
},
"devDependencies": {
"@types/bonjour": "^3.5.4",
"@types/compare-versions": "^3.0.0",
"@types/mocha": "^2.2.42",
"@types/node": "^10.0.0",
"@types/ssh2": "~0.5.35",
"@types/ssh2-streams": "~0.1.5",
"@types/temp": "^0.8.3",
"@types/vscode": "^1.39.0",
"@types/zen-observable": "^0.5.3",
"esbuild": "^0.17.14",
"tslint": "^5.8.0",
"typescript": "^3.7.4",
"vscode-test": "^1.3.0"
},
"dependencies": {
"bonjour": "^3.5.0",
"compare-versions": "^3.0.1",
"dbus-next": "~0.8.2",
"ssh2": "~0.5.5",
"ssh2-streams": "~0.1.19",
"temp": "^0.8.3",
"vscode-debugadapter": "^1.37.1",
"zen-observable": "^0.5.2"
}
}