-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathpackage.json
More file actions
390 lines (390 loc) · 13.3 KB
/
Copy pathpackage.json
File metadata and controls
390 lines (390 loc) · 13.3 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
{
"name": "vscode-nanoframework",
"displayName": ".NET nanoFramework",
"description": "Build, deploy, flash, and debug your .NET nanoFramework solutions",
"icon": "assets/nF-logo-128.png",
"license": "MIT",
"version": "1.0.197-g50dc3ac475",
"overview": "assets/marketplace/vscode-marketplace-overview.md",
"priceCategory": "free",
"publisher": "nanoframework",
"private": false,
"identity": {
"internalName": "vscode-nanoframework"
},
"assetFiles": [
{
"pathOnDisk": "assets/marketplace/nano-vs-code.gif",
"targetPath": "nano-vs-code.gif"
}
],
"engines": {
"vscode": "^1.109.0"
},
"repository": {
"type": "git",
"url": "https://github.com/nanoframework/nf-VSCodeExtension.git"
},
"homepage": "https://nanoframework.net",
"bugs": {
"url": "https://github.com/nanoframework/Home/issues"
},
"categories": [
"Programming Languages",
"Debuggers",
"Other"
],
"badges": [
{
"description": "Build Status",
"href": "https://github.com/nanoframework/nf-VSCodeExtension",
"url": "https://dev.azure.com/nanoframework/VSCodeExtension/_apis/build/status/nanoframework.nf-VSCodeExtension?branchName=develop"
}
],
"sponsor": {
"url": "https://github.com/sponsors/nanoframework"
},
"activationEvents": [
"onDebug",
"onDebugResolve:nanoframework",
"onDebugDynamicConfigurations:nanoframework",
"*"
],
"main": "./out/extension.js",
"contributes": {
"breakpoints": [
{
"language": "csharp"
}
],
"debuggers": [
{
"type": "nanoframework",
"label": ".NET nanoFramework",
"languages": [
"csharp"
],
"configurationAttributes": {
"launch": {
"required": [
"program"
],
"properties": {
"program": {
"type": "string",
"description": "Path to the output directory containing .pe files, or path to a specific .pe file. The main assembly will be inferred from the directory or filename.",
"default": "${workspaceFolder}/${workspaceFolderBasename}/bin/Debug"
},
"device": {
"type": "string",
"description": "Serial port or IP address of the target device (e.g., COM3, /dev/ttyUSB0, 192.168.1.100:1234)",
"default": ""
},
"stopOnEntry": {
"type": "boolean",
"description": "Automatically stop after launch",
"default": true
},
"deployAssemblies": {
"type": "boolean",
"description": "Deploy assemblies to the device before starting debug session",
"default": true
},
"assembliesPath": {
"type": "string",
"description": "Path to the folder containing assemblies to deploy",
"default": "${workspaceFolder}/${workspaceFolderBasename}/bin/Debug"
},
"verbose": {
"type": "boolean",
"description": "(Deprecated) Enable verbose debug output. Use 'verbosity' instead.",
"default": false
},
"verbosity": {
"type": "string",
"description": "Logging verbosity level: 'none' (no output), 'information' (important events), or 'debug' (full diagnostics)",
"enum": [
"none",
"information",
"debug"
],
"default": "information"
}
}
},
"attach": {
"required": [
"device"
],
"properties": {
"device": {
"type": "string",
"description": "Serial port or IP address of the target device",
"default": ""
},
"program": {
"type": "string",
"description": "Path to the output directory containing .pe/.pdb files for symbol resolution, or path to a specific .pe file",
"default": "${workspaceFolder}/${workspaceFolderBasename}/bin/Debug"
},
"stopOnEntry": {
"type": "boolean",
"description": "Break into debugger on attach",
"default": false
},
"verbose": {
"type": "boolean",
"description": "(Deprecated) Enable verbose debug output. Use 'verbosity' instead.",
"default": false
},
"verbosity": {
"type": "string",
"description": "Logging verbosity level: 'none' (no output), 'information' (important events), or 'debug' (full diagnostics)",
"enum": [
"none",
"information",
"debug"
],
"default": "information"
}
}
}
},
"initialConfigurations": [
{
"type": "nanoframework",
"request": "launch",
"name": "nanoFramework: Launch and Debug",
"program": "${workspaceFolder}/${workspaceFolderBasename}/bin/Debug",
"device": "",
"stopOnEntry": true,
"deployAssemblies": true
}
],
"configurationSnippets": [
{
"label": "nanoFramework: Launch",
"description": "Launch and debug a nanoFramework application",
"body": {
"type": "nanoframework",
"request": "launch",
"name": "nanoFramework: Launch",
"program": "${workspaceFolder}/${workspaceFolderBasename}/bin/Debug",
"device": "",
"stopOnEntry": true,
"deployAssemblies": true
}
},
{
"label": "nanoFramework: Attach",
"description": "Attach to a running nanoFramework device",
"body": {
"type": "nanoframework",
"request": "attach",
"name": "nanoFramework: Attach",
"device": "",
"program": "${workspaceFolder}/${workspaceFolderBasename}/bin/Debug"
}
}
]
}
],
"commands": [
{
"command": "vscode-nanoframework.nfbuild",
"title": "nanoFramework: Build Project"
},
{
"command": "vscode-nanoframework.nfdeploy",
"title": "nanoFramework: Deploy Project"
},
{
"command": "vscode-nanoframework.nfflash",
"title": "nanoFramework: Flash device"
},
{
"command": "vscode-nanoframework.nfcreate",
"title": "nanoFramework: Create New Solution"
},
{
"command": "vscode-nanoframework.nfadd",
"title": "nanoFramework: Add a Project to existing Solution"
},
{
"command": "vscode-nanoframework.selectDebugDevice",
"title": "nanoFramework: Select Debug Device"
},
{
"command": "vscode-nanoframework.checkPrerequisites",
"title": "nanoFramework: Check Prerequisites"
},
{
"command": "vscode-nanoframework.serialMonitor",
"title": "nanoFramework: Serial Monitor"
},
{
"command": "vscode-nanoframework.stopSerialMonitor",
"title": "nanoFramework: Stop Serial Monitor"
},
{
"command": "vscode-nanoframework.nfaddnuget",
"title": "nanoFramework: Add NuGet Package"
},
{
"command": "vscode-nanoframework.nfremovenuget",
"title": "nanoFramework: Remove NuGet Package"
},
{
"command": "vscode-nanoframework.nfupdatenuget",
"title": "nanoFramework: Update NuGet Package Version"
},
{
"command": "vscode-nanoframework.configureRunSettings",
"title": "nanoFramework: Configure Test Run Settings"
}
],
"menus": {
"explorer/context": [
{
"when": "resourceExtname == .sln || resourceExtname == .slnx || resourceExtname == .nfproj",
"command": "vscode-nanoframework.nfbuild",
"group": "navigation@1"
},
{
"when": "resourceExtname == .sln || resourceExtname == .slnx",
"command": "vscode-nanoframework.nfdeploy",
"group": "navigation@1"
},
{
"when": "resourceExtname == ",
"command": "vscode-nanoframework.nfcreate",
"group": "navigation@1"
},
{
"when": "resourceExtname == .sln || resourceExtname == .slnx",
"command": "vscode-nanoframework.nfadd",
"group": "navigation@1"
},
{
"when": "resourceExtname == .sln || resourceExtname == .slnx || resourceExtname == .nfproj",
"command": "vscode-nanoframework.nfaddnuget",
"group": "navigation@2"
},
{
"when": "resourceExtname == .sln || resourceExtname == .slnx || resourceExtname == .nfproj",
"command": "vscode-nanoframework.nfremovenuget",
"group": "navigation@2"
},
{
"when": "resourceExtname == .sln || resourceExtname == .slnx || resourceExtname == .nfproj",
"command": "vscode-nanoframework.nfupdatenuget",
"group": "navigation@2"
}
]
},
"configuration": {
"title": ".NET nanoFramework",
"properties": {
"nanoFramework.showTerminalOutput": {
"type": "boolean",
"default": true,
"description": "Show command output in the terminal. When disabled, commands run in the background and key elements are displayed in the Output window."
},
"nanoFramework.test.sessionTimeout": {
"type": "number",
"default": 120000,
"description": "Test session timeout in milliseconds."
},
"nanoFramework.test.logging": {
"type": "string",
"enum": ["None", "Normal", "Verbose"],
"default": "None",
"description": "Logging level for test execution: None (no extra output), Normal (important events), Verbose (full diagnostics)."
},
"nanoFramework.test.nanoclrVersion": {
"type": "string",
"default": "",
"description": "Specific nanoCLR version to use. Leave empty for latest stable."
},
"nanoFramework.test.usePreviewClr": {
"type": "boolean",
"default": false,
"description": "Use the preview version of nanoCLR instead of the latest stable."
},
"nanoFramework.test.pathToLocalCLRInstance": {
"type": "string",
"default": "",
"description": "Path to a local nanoCLR instance. If empty, the default installed instance is used."
},
"nanoFramework.test.hardwarePort": {
"type": "string",
"default": "",
"description": "Serial port (e.g. COM3, /dev/ttyUSB0) or IP:port of the device used for hardware test runs. If empty, a port picker is shown."
},
"nanoFramework.test.hardwareRetries": {
"type": "integer",
"default": 3,
"minimum": 1,
"maximum": 10,
"description": "Number of retry attempts when connecting to a hardware device for test execution."
},
"nanoFramework.test.runSettingsPath": {
"type": "string",
"default": "",
"description": "Path to a nano.runsettings file. If empty, auto-detects in the workspace."
},
"nanoFramework.test.watchMode": {
"type": "boolean",
"default": false,
"description": "When enabled, saving a C# file in a test project automatically triggers a test run for that project."
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"build:prod": "npm run compile",
"build:native": "pwsh scripts/build.ps1",
"build:native:clean": "pwsh scripts/build.ps1 -Clean",
"postinstall": "gulp build",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src",
"test": "node ./out/test/runTest.js",
"clean": "rimraf ./out ./coverage",
"package": "npm run clean && nbgv-setversion && vsce package --githubBranch develop --out ./vscode-nanoframework.vsix --allow-star-activation && nbgv cloud -a -c",
"deploy": "vsce publish --allow-star-activation"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@types/glob": "^9.0.0",
"@types/mocha": "^10.0.10",
"@types/node": "^26.1.0",
"@types/semver": "^7.7.1",
"@types/vscode": "^1.109.0",
"@vscode/test-electron": "^3.0.0",
"eslint": "^10.6.0",
"glob": "^13.0.6",
"gulp": "^5.0.1",
"mocha": "^11.7.6",
"nerdbank-gitversioning": "^3.10.85",
"rimraf": "^6.1.3",
"ts-loader": "^9.6.2",
"typescript": "^5.9.3",
"webpack": "^5.108.4",
"typescript-eslint": "^8.63.0",
"webpack-cli": "^7.2.1"
},
"dependencies": {
"@serialport/parser-readline": "^13.0.0",
"@vscode/debugadapter": "^1.68.0",
"@vscode/debugprotocol": "^1.68.0",
"@vscode/vsce": "^3.9.2",
"axios": "^1.18.1",
"extract-zip": "^2.0.1",
"semver": "^7.8.5",
"serialport": "^13.0.0",
"typed-rest-client": "^3.0.0"
}
}