forked from microsoft/vscode-arduino
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
623 lines (623 loc) · 21.7 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
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
{
"name": "vscode-arduino",
"displayName": "Arduino",
"description": "Arduino for Visual Studio Code",
"version": "0.4.0",
"publisher": "vsciot-vscode",
"aiKey": "83dd2c27-6594-41d3-85a9-bdb22070eb42",
"preview": true,
"engines": {
"vscode": "^1.53.0"
},
"icon": "images/arduino.png",
"license": "SEE LICENSE IN LICENSE.txt",
"repository": {
"type": "git",
"url": "https://github.com/Microsoft/vscode-arduino.git"
},
"bugs": {
"url": "https://github.com/Microsoft/vscode-arduino/issues"
},
"homepage": "https://github.com/Microsoft/vscode-arduino/blob/master/README.md",
"categories": [
"Programming Languages",
"Debuggers",
"Snippets",
"Formatters"
],
"keywords": [
"arduino",
"iot",
"snippet",
"C",
"C++"
],
"activationEvents": [
"*",
"onCommand:arduino.verify",
"onCommand:arduino.upload",
"onCommand:arduino.cliUpload",
"onCommand:arduino.uploadUsingProgrammer",
"onCommand:arduiono.cliUploadUsingProgrammer",
"onCommand:arduino.rebuildIntelliSenseConfig",
"onCommand:arduino.selectProgrammer",
"onCommand:arduino.selectSerialPort",
"onCommand:arduino.changeBaudRate",
"onCommand:arduino.openSerialMonitor",
"onCommand:arduino.sendMessageToSerialPort",
"onCommand:arduino.closeSerialMonitor",
"onCommand:arduino.changeBoardType",
"onCommand:arduino.showBoardConfig",
"onCommand:arduino.showBoardManager",
"onCommand:arduino.showLibraryManager",
"onCommand:arduino.showExamples",
"onCommand:arduino.initialize",
"onDebug"
],
"main": "./out/src/extension",
"contributes": {
"breakpoints": [
{
"language": "c"
},
{
"language": "cpp"
}
],
"snippets": [
{
"language": "cpp",
"path": "./snippets/arduino.json"
},
{
"language": "c",
"path": "./snippets/arduino.json"
}
],
"commands": [
{
"command": "arduino.initialize",
"title": "Arduino: Initialize"
},
{
"command": "arduino.verify",
"title": "Arduino: Verify",
"icon": {
"dark": "images/ArduinoVerify_inverse_16.svg",
"light": "images/ArduinoVerify_16.svg"
}
},
{
"command": "arduino.upload",
"title": "Arduino: Upload",
"icon": {
"dark": "images/ArduinoUpload_inverse_16.svg",
"light": "images/ArduinoUpload_16.svg"
}
},
{
"command": "arduino.cliUpload",
"title": "Arduino CLI: Upload"
},
{
"command": "arduino.uploadUsingProgrammer",
"title": "Arduino: Upload Using Programmer"
},
{
"command": "arduino.cliUploadUsingProgrammer",
"title": "Arduino CLI: Upload Using Programmer"
},
{
"command": "arduino.rebuildIntelliSenseConfig",
"title": "Arduino: Rebuild IntelliSense Configuration"
},
{
"command": "arduino.selectProgrammer",
"title": "Arduino: Select Programmer"
},
{
"command": "arduino.selectSerialPort",
"title": "Arduino: Select Serial Port"
},
{
"command": "arduino.changeBaudRate",
"title": "Arduino: Change Baud Rate"
},
{
"command": "arduino.openSerialMonitor",
"title": "Arduino: Open Serial Monitor"
},
{
"command": "arduino.closeSerialMonitor",
"title": "Arduino: Close Serial Monitor"
},
{
"command": "arduino.sendMessageToSerialPort",
"title": "Arduino: Send Text to Serial Port"
},
{
"command": "arduino.changeBoardType",
"title": "Arduino: Change Board Type"
},
{
"command": "arduino.showBoardConfig",
"title": "Arduino: Board Config"
},
{
"command": "arduino.showBoardManager",
"title": "Arduino: Board Manager"
},
{
"command": "arduino.showLibraryManager",
"title": "Arduino: Library Manager"
},
{
"command": "arduino.showExamples",
"title": "Arduino: Examples"
}
],
"menus": {
"editor/title": [
{
"when": "resourceExtname == .ino",
"command": "arduino.verify",
"group": "navigation"
},
{
"when": "resourceExtname == .ino",
"command": "arduino.upload",
"group": "navigation"
}
]
},
"views": {
"explorer": [
{
"id": "arduinoExampleExplorer",
"name": "Arduino Examples",
"when": "vscode-arduino:showExampleExplorer"
}
]
},
"debuggers": [
{
"type": "arduino",
"label": "Arduino",
"configurationSnippets": [
{
"label": "Arduino: Launch Debugger",
"description": "Debug Arduino sketch",
"body": {
"name": "Arduino",
"type": "arduino",
"request": "launch",
"program": "^\"\\${file}\"",
"cwd": "^\"\\${workspaceFolder}\"",
"MIMode": "gdb",
"targetArchitecture": "arm",
"miDebuggerPath": "",
"debugServerPath": "",
"debugServerArgs": "",
"customLaunchSetupCommands": [
{
"text": "target remote localhost:3333"
},
{
"text": "^\"file \\\"\\${file}\\\"\""
},
{
"text": "load"
},
{
"text": "monitor reset halt"
},
{
"text": "monitor reset init"
}
],
"stopAtEntry": true,
"serverStarted": "Info\\\\ :\\\\ [\\\\w\\\\d\\\\.]*:\\\\ hardware",
"launchCompleteCommand": "exec-continue",
"filterStderr": true,
"args": []
}
}
],
"configurationAttributes": {
"launch": {
"required": [
"program"
],
"properties": {
"program": {
"type": "string",
"description": "Full path to program executable.",
"default": "${workspaceFolder}/arduino.elf"
},
"args": {
"type": "array",
"description": "Command line arguments passed to the program.",
"items": {
"type": "string"
},
"default": []
},
"type": {
"type": "string",
"description": "The type of the engine.",
"default": "arduino"
},
"targetArchitecture": {
"type": "string",
"description": "The architecture of the debugger.",
"default": "arm"
},
"cwd": {
"type": "string",
"description": "The working directory of the target",
"default": "."
},
"setupCommands": {
"type": "array",
"description": "One or more GDB commands to execute in order to setup the underlying debugger. Example: \"setupCommands\": [ { \"text\": \"-enable-pretty-printing\", \"description\": \"Enable GDB pretty printing\", \"ignoreFailures\": true }].",
"items": {
"type": "object",
"properties": {
"text": {
"type": "string",
"description": "The debugger command to execute.",
"default": ""
},
"description": {
"type": "string",
"description": "Optional description for the command.",
"default": ""
},
"ignoreFailures": {
"type": "boolean",
"description": "If true, failures from the command should be ignored. Default value is false.",
"default": "false"
}
}
},
"default": []
},
"customLaunchSetupCommands": {
"type": "array",
"description": "If provided, this replaces the default commands used to launch a target with some other commands. For example, this can be \"-target-attach\" in order to attach to a target process. An empty command list replaces the launch commands with nothing, which can be useful if the debugger is being provided launch options as command line options. Example: \"customLaunchSetupCommands\": [ { \"text\": \"target-run\", \"description\": \"run target\", \"ignoreFailures\": false }].",
"items": {
"type": "object",
"properties": {
"text": {
"type": "string",
"description": "The debugger command to execute.",
"default": ""
},
"description": {
"type": "string",
"description": "Optional description for the command.",
"default": ""
},
"ignoreFailures": {
"type": "boolean",
"description": "If true, failures from the command should be ignored. Default value is false.",
"default": ""
}
}
},
"default": []
},
"launchCompleteCommand": {
"enum": [
"exec-run",
"exec-continue",
"None"
],
"description": "The command to execute after the debugger is fully setup in order to cause the target process to run. Allowed values are \"exec-run\", \"exec-continue\", \"None\". The default value is \"exec-run\".",
"default": "exec-run"
},
"visualizerFile": {
"type": "string",
"description": ".natvis file to be used when debugging this process. This option is not compatible with GDB pretty printing. Please also see \"showDisplayString\" if using this setting.",
"default": ""
},
"showDisplayString": {
"type": "boolean",
"description": "When a visualizerFile is specified, showDisplayString will enable the display string. Turning this option on can cause slower performance during debugging.",
"default": "true"
},
"additionalSOLibSearchPath": {
"type": "string",
"description": "Semicolon separated list of directories to use to search for .so files. Example: \"c:\\dir1;c:\\dir2\".",
"default": ""
},
"MIMode": {
"type": "string",
"description": "Indicates the console debugger that the MIDebugEngine will connect to. Allowed values are \"gdb\" \"lldb\".",
"default": "gdb"
},
"miDebuggerPath": {
"type": "string",
"description": "The path to the mi debugger (such as gdb). When unspecified, it will search path first for the debugger.",
"default": "/usr/bin/gdb"
},
"miDebuggerServerAddress": {
"type": "string",
"description": "Network address of the MI Debugger Server to connect to (example: localhost:1234).",
"default": "serveraddress:port"
},
"stopAtEntry": {
"type": "boolean",
"description": "Optional parameter. If true, the debugger should stop at the entrypoint of the target. If processId is passed, has no effect.",
"default": false
},
"debugServerPath": {
"type": "string",
"description": "Optional full path to debug server to launch. Defaults to null.",
"default": ""
},
"debugServerArgs": {
"type": "string",
"description": "Optional debug server args. Defaults to null.",
"default": ""
},
"serverStarted": {
"type": "string",
"description": "Optional server-started pattern to look for in the debug server output. Defaults to null.",
"default": ""
},
"filterStdout": {
"type": "boolean",
"description": "Search stdout stream for server-started pattern and log stdout to debug output. Defaults to true.",
"default": "true"
},
"filterStderr": {
"type": "boolean",
"description": "Search stderr stream for server-started pattern and log stderr to debug output. Defaults to false.",
"default": "false"
},
"serverLaunchTimeout": {
"type": "integer",
"description": "Optional time, in milliseconds, for the debugger to wait for the debugServer to start up. Default is 10000.",
"default": "10000"
},
"coreDumpPath": {
"type": "string",
"description": "Optional full path to a core dump file for the specified program. Defaults to null.",
"default": ""
},
"externalConsole": {
"type": "boolean",
"description": "If true, a console is launched for the debuggee. If false, no console is launched. Note this option is ignored in some cases for technical reasons.",
"default": "false"
},
"sourceFileMap": {
"type": "object",
"description": "Optional source file mappings passed to the debug engine. Example: '{ \"/original/source/path\":\"/current/source/path\" }'",
"default": {
"<source-path>": "<target-path>"
}
},
"logging": {
"type": "object",
"description": "Optional flags to determine what types of messages should be logged to the Debug Console.",
"default": {},
"properties": {
"exceptions": {
"type": "boolean",
"description": "Optional flag to determine whether exception messages should be logged to the Debug Console. Defaults to true.",
"default": true
},
"moduleLoad": {
"type": "boolean",
"description": "Optional flag to determine whether module load events should be logged to the Debug Console. Defaults to true.",
"default": true
},
"programOutput": {
"type": "boolean",
"description": "Optional flag to determine whether program output should be logged to the Debug Console. Defaults to true.",
"default": true
},
"engineLogging": {
"type": "boolean",
"description": "Optional flag to determine whether diagnostic engine logs should be logged to the Debug Console. Defaults to false.",
"default": false
},
"trace": {
"type": "boolean",
"description": "Optional flag to determine whether diagnostic adapter command tracing should be logged to the Debug Console. Defaults to false.",
"default": false
},
"traceResponse": {
"type": "boolean",
"description": "Optional flag to determine whether diagnostic adapter command and response tracing should be logged to the Debug Console. Defaults to false.",
"default": false
}
}
}
}
}
}
}
],
"keybindings": [
{
"command": "arduino.verify",
"key": "ctrl+alt+r",
"mac": "cmd+alt+r"
},
{
"command": "arduino.upload",
"key": "ctrl+alt+u",
"mac": "cmd+alt+u"
},
{
"command": "arduino.rebuildIntelliSenseConfig",
"key": "ctrl+alt+i",
"mac": "cmd+alt+i"
}
],
"configuration": {
"type": "object",
"title": "Arduino configuration",
"properties": {
"arduino.useArduinoCli": {
"type": "boolean",
"default": false,
"markdownDescription": "Use Arduino CLI installed instead of Arduino IDE. `#arduino.path#` must be set, as there is no default path for 'arduino-cli'. (Requires a restart after change)"
},
"arduino.path": {
"type": "string",
"default": "",
"description": "Path to Arduino, you can use a custom version of Arduino by modifying this setting to include the full path. Example: 'C:\\Program Files\\Arduino' for Windows, '/Applications' for Mac, '/home/$user/Downloads/arduino-1.8.1' for Linux. (Requires a restart after change)"
},
"arduino.commandPath": {
"type": "string",
"default": "",
"description": "Path to a script relative to 'arduino.path', you can use a custom launch script to run Arduino by modifying this setting. Example: 'run-arduino.bat' for Windows, 'Contents/MacOS/run-arduino.sh' for Mac, 'bin/run-arduino.sh' for Linux. (Requires a restart after change)"
},
"arduino.additionalUrls": {
"type": [
"string",
"array"
],
"description": "Additional URLs for 3-rd party packages. You can have multiple URLs in one string with comma(,) as separator, or have a string array."
},
"arduino.logLevel": {
"type": "string",
"default": "info",
"enum": [
"info",
"verbose"
]
},
"arduino.openPDEFiletype": {
"type": "boolean",
"default": false,
"description": "Allow VSCode Arduino to open PDE sketches, from pre-1.0.0 versions of Arduino"
},
"arduino.enableUSBDetection": {
"type": "boolean",
"default": true
},
"arduino.disableTestingOpen": {
"type": "boolean",
"default": false
},
"arduino.ignoreBoards": {
"type": "array",
"default": []
},
"arduino.skipHeaderProvider": {
"type": "boolean",
"default": false
},
"arduino.defaultBaudRate": {
"type": "number",
"default": 115200
},
"arduino.disableIntelliSenseAutoGen": {
"type": "boolean",
"default": false,
"description": "When disabled vscode-arduino will not auto-generate an IntelliSense configuration (i.e. c_cpp_properties.json) by analyzing the compiler output."
}
}
},
"configurationDefaults": {
"[cpp]": {
"editor.quickSuggestions": true
},
"[c]": {
"editor.quickSuggestions": true
}
},
"languages": [
{
"id": "arduino-output",
"mimetypes": [
"text/x-code-output"
]
},
{
"id": "cpp",
"extensions": [
".ino"
]
}
],
"grammars": [
{
"language": "cpp",
"path": "./syntaxes/arduino.tmLanguage",
"scopeName": "source.cpp.arduino"
},
{
"language": "arduino-output",
"scopeName": "arduino.output",
"path": "./syntaxes/arduino.output.tmLanguage"
}
],
"jsonValidation": [
{
"fileMatch": "arduino.json",
"url": "./misc/arduinoValidator.json"
}
]
},
"scripts": {
"vscode:prepublish": "gulp build --mode=production",
"postinstall": "cd ./src/views && npm install && node ../../node_modules/node-usb-native/scripts/rebuild-serialport.js",
"test": "gulp test"
},
"extensionDependencies": [
"ms-vscode.cpptools"
],
"devDependencies": {
"@types/compare-versions": "^3.0.0",
"@types/mocha": "^5.2.7",
"@types/node": "^6.14.9",
"@types/vscode": "^1.43.0",
"@types/winreg": "^1.2.30",
"acorn": "^7.4.0",
"ajv": "^5.0.0",
"del": "^2.2.2",
"eslint": "^6.8.0",
"eslint-config-standard": "^10.2.1",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-node": "^4.2.2",
"eslint-plugin-promise": "^3.5.0",
"eslint-plugin-require-path-exists": "^1.1.7",
"eslint-plugin-standard": "^3.0.1",
"fancy-log": "^1.3.3",
"gulp": "^4.0.2",
"gulp-eslint": "^6.0.0",
"gulp-sourcemaps": "^2.4.1",
"gulp-tslint": "^8.1.4",
"gulp-typescript": "^5.0.1",
"minimist": "^1.2.0",
"mocha": "^6.2.3",
"node-gyp": "^6.1.0",
"plugin-error": "^1.0.1",
"tslint": "^5.20.1",
"typemoq": "^1.6.0",
"typescript": "^3.7.5",
"vscode-test": "^1.4.0",
"webpack": "^4.44.1"
},
"dependencies": {
"body-parser": "^1.16.1",
"cocopa": "0.0.13",
"compare-versions": "^3.4.0",
"eventemitter2": "^4.1.0",
"express": "^4.14.1",
"glob": "^7.1.1",
"iconv-lite": "^0.4.18",
"impor": "^0.1.1",
"node-usb-native": "^0.0.19",
"properties": "^1.2.1",
"uuid": "^3.0.1",
"vscode-extension-telemetry": "0.1.6",
"winreg": "^1.2.3",
"winston": "^2.3.1"
}
}