-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
451 lines (451 loc) · 14.2 KB
/
Copy pathpackage.json
File metadata and controls
451 lines (451 loc) · 14.2 KB
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
{
"name": "arduino-unified",
"displayName": "Arduino Unified",
"description": "Arduino Unified streamlines your workflow by automating the installation of the official toolchain—including Arduino CLI, Language Server, and Clangd—providing a true out-of-the-box experience. No more fragmented extensions or complex configurations; just pure, efficient coding for your hardware projects.",
"version": "1.1.2",
"publisher": "fermeridamagni",
"license": "GPL-3.0",
"icon": "resources/icon.png",
"repository": {
"type": "git",
"url": "https://github.com/fermeridamagni/arduino-unified"
},
"engines": {
"vscode": "^1.107.0",
"node": ">=20.0.0"
},
"categories": [
"Programming Languages",
"Debuggers",
"Formatters",
"Other"
],
"keywords": [
"arduino",
"embedded",
"iot",
"microcontroller",
"serial",
"esp32",
"esp8266",
"avr",
"hardware"
],
"activationEvents": [
"onLanguage:cpp",
"workspaceContains:**/*.ino",
"workspaceContains:**/*.pde"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "arduinoUnified.compile",
"title": "Arduino Unified: Compile Sketch",
"icon": "$(check)"
},
{
"command": "arduinoUnified.upload",
"title": "Arduino Unified: Upload Sketch",
"icon": "$(arrow-up)"
},
{
"command": "arduinoUnified.uploadUsingProgrammer",
"title": "Arduino Unified: Upload Using Programmer"
},
{
"command": "arduinoUnified.burnBootloader",
"title": "Arduino Unified: Burn Bootloader"
},
{
"command": "arduinoUnified.exportBinary",
"title": "Arduino Unified: Export Compiled Binary"
},
{
"command": "arduinoUnified.selectBoard",
"title": "Arduino Unified: Select Board & Port",
"icon": "$(circuit-board)"
},
{
"command": "arduinoUnified.selectPort",
"title": "Arduino Unified: Select Port"
},
{
"command": "arduinoUnified.newSketch",
"title": "Arduino Unified: New Sketch",
"icon": "$(new-file)"
},
{
"command": "arduinoUnified.openRecentSketch",
"title": "Arduino Unified: Open Recent Sketch"
},
{
"command": "arduinoUnified.archiveSketch",
"title": "Arduino Unified: Archive Sketch"
},
{
"command": "arduinoUnified.saveSketchAs",
"title": "Arduino Unified: Save Sketch As..."
},
{
"command": "arduinoUnified.openSerialMonitor",
"title": "Arduino Unified: Open Serial Monitor",
"icon": "$(plug)"
},
{
"command": "arduinoUnified.closeSerialMonitor",
"title": "Arduino Unified: Close Serial Monitor"
},
{
"command": "arduinoUnified.changeBaudRate",
"title": "Arduino Unified: Change Baud Rate"
},
{
"command": "arduinoUnified.installLibrary",
"title": "Arduino Unified: Install Library"
},
{
"command": "arduinoUnified.installPlatform",
"title": "Arduino Unified: Install Board Platform"
},
{
"command": "arduinoUnified.startDebug",
"title": "Arduino Unified: Start Debugging",
"icon": "$(debug-alt)"
},
{
"command": "arduinoUnified.checkDebugSupport",
"title": "Arduino Unified: Check Debug Support"
},
{
"command": "arduinoUnified.showOutput",
"title": "Arduino Unified: Show Output"
}
],
"configuration": {
"title": "Arduino Unified",
"properties": {
"arduinoUnified.cli.path": {
"type": "string",
"default": "",
"description": "Custom path to arduino-cli binary. Leave empty to auto-download and manage."
},
"arduinoUnified.cli.version": {
"type": "string",
"default": "1.4.1",
"description": "Arduino CLI version to auto-download when no custom path is set."
},
"arduinoUnified.compile.verbose": {
"type": "boolean",
"default": false,
"description": "Show verbose output during compilation."
},
"arduinoUnified.compile.warnings": {
"type": "string",
"default": "none",
"enum": [
"none",
"default",
"more",
"all"
],
"enumDescriptions": [
"No warnings",
"Default compiler warnings",
"More warnings",
"All warnings"
],
"description": "Compiler warning level."
},
"arduinoUnified.compile.optimizeForDebug": {
"type": "boolean",
"default": false,
"description": "Optimize compilation output for debugging (disables optimizations)."
},
"arduinoUnified.upload.verbose": {
"type": "boolean",
"default": false,
"description": "Show verbose output during upload."
},
"arduinoUnified.upload.verify": {
"type": "boolean",
"default": false,
"description": "Verify uploaded binary after upload completes."
},
"arduinoUnified.upload.autoVerify": {
"type": "boolean",
"default": true,
"description": "Automatically compile sketch before uploading."
},
"arduinoUnified.sketchbook.path": {
"type": "string",
"default": "",
"description": "Path to Arduino sketchbook folder. Leave empty for default location."
},
"arduinoUnified.boardManager.additionalUrls": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Additional board manager URLs for 3rd-party platforms (e.g., ESP32, STM32).",
"markdownDescription": "Additional board manager URLs for 3rd-party platforms.\n\nCommon URLs:\n- ESP32: `https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json`\n- ESP8266: `http://arduino.esp8266.com/stable/package_esp8266com_index.json`\n- STM32: `https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json`"
},
"arduinoUnified.monitor.baudRate": {
"type": "number",
"default": 9600,
"enum": [
300,
1200,
2400,
4800,
9600,
19200,
38400,
57600,
115200,
230400,
460800,
921600
],
"description": "Default baud rate for the serial monitor."
},
"arduinoUnified.monitor.lineEnding": {
"type": "string",
"default": "nl",
"enum": [
"none",
"nl",
"cr",
"nlcr"
],
"enumDescriptions": [
"No line ending",
"Newline (\\n)",
"Carriage return (\\r)",
"Both (\\r\\n)"
],
"description": "Line ending to append when sending serial data."
},
"arduinoUnified.monitor.autoScroll": {
"type": "boolean",
"default": true,
"description": "Auto-scroll serial monitor output."
},
"arduinoUnified.monitor.timestamp": {
"type": "boolean",
"default": false,
"description": "Show timestamps in serial monitor output."
},
"arduinoUnified.formatter.path": {
"type": "string",
"default": "",
"description": "Custom path to clang-format binary for code formatting."
},
"arduinoUnified.languageServer.path": {
"type": "string",
"default": "",
"description": "Custom path to arduino-language-server binary."
},
"arduinoUnified.clangd.path": {
"type": "string",
"default": "",
"description": "Custom path to clangd binary."
},
"arduinoUnified.sketch.template": {
"type": "string",
"default": "void setup() {\n // put your setup code here, to run once:\n}\n\nvoid loop() {\n // put your main code here, to run repeatedly:\n}\n",
"editPresentation": "multilineText",
"description": "Template content for new Arduino sketches."
}
}
},
"languages": [
{
"id": "ino",
"aliases": [
"Arduino",
"arduino"
],
"extensions": [
".ino",
".pde"
],
"configuration": "./language-configuration.json"
}
],
"menus": {
"editor/title": [
{
"command": "arduinoUnified.compile",
"when": "resourceExtname == .ino",
"group": "navigation@1"
},
{
"command": "arduinoUnified.upload",
"when": "resourceExtname == .ino",
"group": "navigation@2"
},
{
"command": "arduinoUnified.openSerialMonitor",
"when": "resourceExtname == .ino",
"group": "navigation@3"
}
],
"commandPalette": [
{
"command": "arduinoUnified.compile"
},
{
"command": "arduinoUnified.upload"
},
{
"command": "arduinoUnified.selectBoard"
},
{
"command": "arduinoUnified.openSerialMonitor"
}
]
},
"chatParticipants": [
{
"id": "arduino-unified.arduino",
"fullName": "Arduino Unified Assistant",
"name": "arduino",
"description": "AI-powered Arduino programming assistant. Ask about code, boards, libraries, wiring, and debugging.",
"isSticky": true
}
],
"languageModelTools": [
{
"name": "arduino_compile",
"toolReferenceName": "arduino_compile",
"displayName": "Compile Arduino Sketch",
"modelDescription": "Compile the current Arduino sketch and return any errors, warnings, and memory usage information.",
"canBeReferencedInPrompt": true,
"inputSchema": {
"type": "object",
"properties": {}
}
},
{
"name": "arduino_upload",
"toolReferenceName": "arduino_upload",
"displayName": "Upload Arduino Sketch",
"modelDescription": "Upload the current Arduino sketch to the selected board and return any errors or warnings.",
"canBeReferencedInPrompt": true,
"inputSchema": {
"type": "object",
"properties": {}
}
},
{
"name": "arduino_serial_write",
"toolReferenceName": "arduino_serial_write",
"displayName": "Write to Arduino Serial",
"modelDescription": "Send data to the connected Arduino board's serial port.",
"canBeReferencedInPrompt": true,
"inputSchema": {
"type": "object",
"properties": {
"data": {
"type": "string",
"description": "Data to send to the Arduino serial port"
}
},
"required": [
"data"
]
}
},
{
"name": "arduino_select_board",
"toolReferenceName": "arduino_select_board",
"displayName": "Select Arduino Board",
"modelDescription": "Select the currently active Arduino board and port for compilation and upload.",
"canBeReferencedInPrompt": true,
"inputSchema": {
"type": "object",
"properties": {}
}
},
{
"name": "arduino_board_info",
"toolReferenceName": "arduino_board_info",
"displayName": "Get Arduino Board Info",
"modelDescription": "Get information about the currently selected Arduino board including pin mappings, configuration options, and available programmers.",
"canBeReferencedInPrompt": true,
"inputSchema": {
"type": "object",
"properties": {}
}
},
{
"name": "arduino_library_search",
"toolReferenceName": "arduino_library_search",
"displayName": "Search Arduino Libraries",
"modelDescription": "Search the Arduino library registry for libraries matching a query.",
"canBeReferencedInPrompt": true,
"inputSchema": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Search query for library name or keyword"
}
},
"required": [
"query"
]
}
},
{
"name": "arduino_serial_read",
"toolReferenceName": "arduino_serial_read",
"displayName": "Read Arduino Serial Output",
"modelDescription": "Read recent serial monitor output from the connected Arduino board.",
"canBeReferencedInPrompt": true,
"inputSchema": {
"type": "object",
"properties": {}
}
}
]
},
"scripts": {
"vscode:prepublish": "pnpm run package",
"compile-webview": "cd webview && pnpm run build",
"compile": "pnpm run compile-webview && pnpm run check-types && pnpm run check && bun esbuild.ts",
"watch": "npm-run-all -p watch:*",
"watch:webview": "cd webview && pnpm run build --watch",
"watch:esbuild": "bun esbuild.ts --watch",
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
"package": "pnpm run compile-webview && pnpm run check-types && pnpm run check && bun esbuild.ts --production",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "pnpm run compile-tests && pnpm run compile && pnpm run check",
"check-types": "tsc --noEmit",
"test": "vscode-test",
"test:bun": "bun test src/test",
"check": "ultracite check",
"fix": "ultracite fix"
},
"devDependencies": {
"@biomejs/biome": "2.4.10",
"@types/mocha": "^10.0.10",
"@types/node": "25.5.2",
"@types/vscode": "^1.136.0",
"@vscode/test-cli": "^0.0.12",
"@vscode/test-electron": "^2.5.2",
"esbuild": "^0.28.2",
"npm-run-all": "^4.1.5",
"typescript": "^6.0.3",
"ultracite": "7.4.3"
},
"dependencies": {
"@grpc/grpc-js": "^1.14.4",
"@grpc/proto-loader": "^0.8.1",
"yaml": "^2.9.0"
},
"packageManager": "pnpm@10.33.0"
}