-
-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathpackage.json
655 lines (655 loc) · 22.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
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
{
"name": "cake-vscode",
"displayName": "Cake",
"publisher": "cake-build",
"description": "Cake build script language support.",
"version": "0.1.0",
"icon": "images/cake.png",
"private": true,
"author": {
"name": "Cake Build"
},
"bugs": {
"url": "https://github.com/cake-build/cake-vscode/issues"
},
"homepage": "https://cakebuild.net",
"repository": {
"type": "git",
"url": "https://github.com/cake-build/cake-vscode.git"
},
"galleryBanner": {
"color": "#FFE05C",
"theme": "light"
},
"engines": {
"vscode": "^1.24.0"
},
"categories": [
"Programming Languages",
"Snippets",
"Debuggers"
],
"activationEvents": [
"onCommand:cake.bootstrapper",
"onCommand:cake.configuration",
"onCommand:cake.addAddin",
"onCommand:cake.addTool",
"onCommand:cake.addModule",
"onCommand:cake.debug",
"onCommand:cake.buildFile",
"onCommand:cake.install",
"onCommand:cake.intellisense",
"onCommand:cake.runTask",
"onCommand:cake.debugTask",
"onCommand:workbench.action.tasks.runTask",
"onLanguage:csharp"
],
"main": "./out/src/cakeMain",
"contributes": {
"breakpoints": [
{
"language": "csharp"
}
],
"snippets": [
{
"language": "csharp",
"path": "./snippets/snippets.json"
}
],
"commands": [
{
"command": "cake.bootstrapper",
"title": "Cake: Install a bootstrapper"
},
{
"command": "cake.configuration",
"title": "Cake: Install a configuration file"
},
{
"command": "cake.addAddin",
"title": "Cake: Add addin from NuGet"
},
{
"command": "cake.addTool",
"title": "Cake: Add tool from NuGet"
},
{
"command": "cake.addModule",
"title": "Cake: Add module from NuGet"
},
{
"command": "cake.debug",
"title": "Cake: Install debug dependencies"
},
{
"command": "cake.buildFile",
"title": "Cake: Install sample build file"
},
{
"command": "cake.install",
"title": "Cake: Install to workspace"
},
{
"command": "cake.intellisense",
"title": "Cake: Update intellisense support"
}
],
"configuration": {
"type": "object",
"title": "Cake configuration",
"properties": {
"cake.taskRunner": {
"type": "object",
"default": {
"autoDetect": true,
"installNetTool": true,
"scriptsIncludePattern": "**/*.cake",
"scriptsExcludePattern": "",
"taskRegularExpression": "Task\\s*?\\(\\s*?\"(.*?)\"\\s*?\\)",
"launchCommand": null,
"verbosity": "normal"
},
"description": "The Cake Task Runner settings",
"properties": {
"autoDetect": {
"type": "boolean",
"description": "A boolean value which toggles auto detection of Tasks on or off.",
"default": true
},
"installNetTool": {
"type": "boolean",
"description": "Auto-install the Cake .NET Tool.",
"default": true
},
"scriptsIncludePattern": {
"type": "string",
"description": "A glob pattern which specifies how to detect `.cake` files in the current workspace.",
"default": "**/*.cake"
},
"scriptsExcludePattern": {
"type": "string",
"description": "A glob pattern which specifies all files and folders that shouldn't be included in search of current workspace.",
"default": ""
},
"taskRegularExpression": {
"type": "string",
"description": "A regular expression pattern which is used to identify Tasks within the *.cake files.",
"default": "Task\\s*?\\(\\s*?\"(.*?)\"\\s*?\\)"
},
"launchCommand": {
"type": [
"null",
"object"
],
"description": "The name of the build script to run, when running a task. the default of `null` is equal to {\"default\": \"~/.dotnet/tools/dotnet-cake\", \"win32\": \"dotnet-cake.exe\"}",
"default": null,
"required": [
"default"
],
"properties": {
"default": {
"type": "string",
"description": "The default name of the build script to run.",
"default": "~/.dotnet/tools/dotnet-cake"
},
"win32": {
"type": [
"null",
"string"
],
"description": "The win32-specific name of the build script to run.",
"default": "dotnet-cake.exe"
},
"darwin": {
"type": [
"null",
"string"
],
"description": "The darwin-specific name of the build script to run.",
"default": null
},
"linux": {
"type": [
"null",
"string"
],
"description": "The linux-specific name of the build script to run.",
"default": null
},
"aix": {
"type": [
"null",
"string"
],
"description": "The aix-specific name of the build script to run.",
"default": null
},
"freebsd": {
"type": [
"null",
"string"
],
"description": "The freebsd-specific name of the build script to run.",
"default": null
},
"openbsd": {
"type": [
"null",
"string"
],
"description": "The openbsd-specific name of the build script to run.",
"default": null
},
"sunos": {
"type": [
"null",
"string"
],
"description": "The sunos-specific name of the build script to run.",
"default": null
}
}
},
"verbosity": {
"type": "string",
"description": "allows you to control cake `run task` verbosity",
"enum": [
"diagnostic",
"minimal",
"normal",
"quiet",
"verbose"
],
"enumDescriptions": [
"Diagnostic verbosity",
"Minimal verbosity.",
"Normal verbosity.",
"Quiet verbosity.",
"Verbose verbosity."
],
"default": "normal"
}
}
},
"cake.bootstrappers": {
"type": "object",
"default": {
"dotnet-framework-powershell": "https://cakebuild.net/download/bootstrapper/dotnet-framework/powershell",
"dotnet-framework-bash": "https://cakebuild.net/download/bootstrapper/dotnet-framework/bash",
"dotnet-core-powershell": "https://cakebuild.net/download/bootstrapper/dotnet-core/powershell",
"dotnet-core-bash": "https://cakebuild.net/download/bootstrapper/dotnet-core/bash",
"dotnet-tool-powershell": "https://cakebuild.net/download/bootstrapper/dotnet-tool/powershell",
"dotnet-tool-bash": "https://cakebuild.net/download/bootstrapper/dotnet-tool/bash"
},
"description": "The Cake bootstrapper URIs.",
"properties": {
"dotnet-framework-powershell": {
"type": "string",
"description": "Download URL for bootstrapper: dotnet-framework/powershell",
"default": "https://cakebuild.net/download/bootstrapper/dotnet-framework/powershell"
},
"dotnet-framework-bash": {
"type": "string",
"description": "Download URL for bootstrapper: dotnet-framework/bash",
"default": "https://cakebuild.net/download/bootstrapper/dotnet-framework/bash"
},
"dotnet-core-powershell": {
"type": "string",
"description": "Download URL for bootstrapper: core/powershell",
"default": "https://cakebuild.net/download/bootstrapper/dotnet-core/powershell"
},
"dotnet-core-bash": {
"type": "string",
"description": "Download URL for bootstrapper: core/bash",
"default": "https://cakebuild.net/download/bootstrapper/dotnet-core/bash"
},
"dotnet-tool-powershell": {
"type": "string",
"description": "Download URL for bootstrapper: dotnet-tool/powershell",
"default": "https://cakebuild.net/download/bootstrapper/dotnet-tool/powershell"
},
"dotnet-tool-bash": {
"type": "string",
"description": "Download URL for bootstrapper: dotnet-tool/bash",
"default": "https://cakebuild.net/download/bootstrapper/dotnet-tool/bash"
}
}
},
"cake.configuration": {
"type": "object",
"default": {
"config": "https://cakebuild.net/download/configuration"
},
"description": "The Cake configuration URI.",
"properties": {
"config": {
"type": "string",
"description": "The Cake configuration URI.",
"default": "https://cakebuild.net/download/configuration"
}
}
},
"cake.codeLens": {
"type": "object",
"description": "The Cake codelens configuration",
"default": {
"showCodeLens": true,
"installNetTool": true,
"scriptsIncludePattern": "**/*.cake",
"taskRegularExpression": "Task\\s*?\\(\\s*?\"(.*?)\"\\s*?\\)",
"debugTask": {
"verbosity": "normal",
"debugType": "coreclr",
"request": "launch",
"program": null,
"cwd": "${workspaceRoot}",
"stopAtEntry": false,
"console": "internalConsole",
"logging": {
"exceptions": false,
"moduleLoad": false,
"programOutput": false,
"engineLogging": false,
"browserStdOut": false
}
}
},
"properties": {
"showCodeLens": {
"type": "boolean",
"description": "Show codelens for tasks in Cake files",
"default": true
},
"installNetTool": {
"type": "boolean",
"description": "Auto-install the Cake .NET Tool.",
"default": true
},
"scriptsIncludePattern": {
"type": "string",
"description": "Glob pattern to detect cake build scripts in current workspace",
"default": "**/*.cake"
},
"taskRegularExpression": {
"type": "string",
"description": "Regular expression pattern to get tasks from Cake script",
"default": "Task\\s*?\\(\\s*?\"(.*?)\"\\s*?\\)"
},
"debugTask": {
"type": "object",
"description": "Cake debug task configuration",
"properties": {
"verbosity": {
"type": "string",
"description": "Represents Cake debug task output verbosity",
"enum": [
"diagnostic",
"minimal",
"normal",
"quiet",
"verbose"
],
"enumDescriptions": [
"Diagnostic verbosity",
"Minimal verbosity.",
"Normal verbosity.",
"Quiet verbosity.",
"Verbose verbosity."
],
"default": "diagnostic"
},
"debugType": {
"type": "string",
"description": "The type of the debug session",
"default": "coreclr"
},
"request": {
"type": "string",
"description": "The request type of the debug session",
"default": "launch"
},
"program": {
"type": [
"null",
"object"
],
"description": "An Object describing the executable for the debug session. The default of `null` is equal to is equal to {\"default\": \"~/.dotnet/tools/dotnet-cake\", \"win32\": \"dotnet-cake.exe\"}",
"default": null,
"required": [
"default"
],
"properties": {
"default": {
"type": "string",
"description": "The default executable for the debug session.",
"default": "~/.dotnet/tools/dotnet-cake"
},
"win32": {
"type": [
"null",
"string"
],
"description": "The win32-specific executable for the debug session.",
"default": "dotnet-cake.exe"
},
"darwin": {
"type": [
"null",
"string"
],
"description": "The darwin-specific executable for the debug session.",
"default": null
},
"linux": {
"type": [
"null",
"string"
],
"description": "The linux-specific executable for the debug session.",
"default": null
},
"aix": {
"type": [
"null",
"string"
],
"description": "The aix-specific executable for the debug session.",
"default": null
},
"freebsd": {
"type": [
"null",
"string"
],
"description": "The freebsd-specific executable for the debug session.",
"default": null
},
"openbsd": {
"type": [
"null",
"string"
],
"description": "The openbsd-specific executable for the debug session.",
"default": null
},
"sunos": {
"type": [
"null",
"string"
],
"description": "The sunos-specific executable for the debug session.",
"default": null
}
}
},
"cwd": {
"type": "string",
"description": "The working directory of the Cake script being debugged. Default is the current workspace.",
"default": "${workspaceRoot}"
},
"stopAtEntry": {
"type": "boolean",
"description": "If true, the debugger should stop at the entry point of the target.",
"default": false
},
"console": {
"type": "string",
"description": "Where to launch the debug target.",
"enum": [
"internalConsole",
"integratedTerminal",
"externalTerminal"
],
"enumDescriptions": [
"Output to the VS Code Debug Console. This doesn't support reading console input (ex:Console.ReadLine)",
"VS Code's integrated terminal",
"External terminal that can be configured via user settings"
],
"default": "internalConsole"
},
"logging": {
"description": "Optional flags to determine what types of messages should be logged to the output window.",
"type": "object",
"properties": {
"exceptions": {
"type": "boolean",
"description": "Optional flag to determine whether exception messages should be logged to the output window.",
"default": false
},
"moduleLoad": {
"type": "boolean",
"description": "Optional flag to determine whether module load events should be logged to the output window.",
"default": false
},
"programOutput": {
"type": "boolean",
"description": "Optional flag to determine whether program output should be logged to the output window when not using an external console.",
"default": false
},
"engineLogging": {
"type": "boolean",
"description": "Optional flag to determine whether diagnostic engine logs should be logged to the output window.",
"default": false
},
"browserStdOut": {
"type": "boolean",
"description": "Optional flag to determine if stdout text from the launching web browser should be logged to the output window.",
"default": false
}
}
}
}
}
}
},
"cake.codeSymbols": {
"type": "object",
"description": "The Cake code symbols configuration",
"default": {
"contextRegularExpression": "(Setup|TaskSetup|Teardown|TaskTeardown|RunTarget)\\s*?",
"taskRegularExpression": "Task\\s*?\\(\\s*?\"(.*?)\"\\s*?\\)"
},
"properties": {
"contextRegularExpression": {
"type": "string",
"description": "Regular expression pattern to get contexts from Cake script",
"default": "(Setup|TaskSetup|Teardown|TaskTeardown|RunTarget)\\s*?"
},
"taskRegularExpression": {
"type": "string",
"description": "Regular expression pattern to get tasks from Cake script",
"default": "(Task\\s*?\\(\\s*?\"(.*?)\"\\s*?\\)|Setup\\(.*=>|TearDown\\(.*=>|RunTarget\\(.*\\);)"
}
}
}
}
},
"debuggers": [
{
"type": "cake-tool",
"label": "Cake Tool",
"initialConfigurations": [
{
"name": "Cake: Debug Script (.NET Tool)",
"type": "coreclr",
"request": "launch",
"program": "dotnet-cake",
"windows": {
"program": "dotnet-cake.exe"
},
"args": [
"${workspaceRoot}/build.cake",
"--debug",
"--verbosity=diagnostic"
],
"cwd": "${workspaceRoot}",
"stopAtEntry": false,
"externalConsole": false,
"justMyCode": false
}
],
"configurationSnippets": [
{
"label": "Cake: Debug Script (.NET Tool)",
"description": "test",
"body": {
"name": "Cake: Debug Script (.NET Tool)",
"type": "coreclr",
"request": "launch",
"program": "dotnet-cake",
"windows": {
"program": "dotnet-cake.exe"
},
"args": [
"^\"\\${workspaceRoot}/build.cake\"",
"--debug",
"--verbosity=diagnostic"
],
"cwd": "^\"\\${workspaceRoot}\"",
"stopAtEntry": false,
"externalConsole": false,
"justMyCode": false
}
}
]
}
],
"languages": [
{
"id": "ini",
"filenames": [
"cake.config"
]
}
],
"taskDefinitions": [
{
"type": "cake",
"required": [
"script"
],
"properties": {
"script": {
"type": "string",
"description": "The script to execute"
}
}
}
],
"problemMatchers": [
{
"name": "cake",
"owner": "cake",
"fileLocation": [
"absolute"
],
"pattern": {
"regexp": "^(.+)\\((\\d+),(\\d+)\\): (error|warning) (\\w+): (.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"code": 5,
"message": 6
}
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "npm run ensureCi && tsc -watch -p ./",
"test": "npm run compile && node ./out/test/runTest.js",
"depcheck": "depcheck",
"ensureCi": "node -e \"const fs=require('fs'); if (fs.existsSync('./node_modules/')) { process.exit(123); }\" && npm ci"
},
"dependencies": {
"adm-zip": "^0.5.9",
"byline": "^5.0.0",
"https-proxy-agent": "^5.0.1",
"ini": "^3.0.1",
"node-fetch": "^2.6.7",
"request": "^2.88.2",
"xml2js": "^0.4.23"
},
"devDependencies": {
"@types/byline": "^4.2.33",
"@types/glob": "^8.0.0",
"@types/ini": "^1.3.31",
"@types/mocha": "^10.0.0",
"@types/node": "^18.8.3",
"@types/node-fetch": "^2.6.2",
"@types/vscode": "^1.24.0",
"@types/xml2js": "^0.4.9",
"depcheck": "^1.4.3",
"glob": "^8.0.3",
"mocha": "^10.0.0",
"typemoq": "^2.1.0",
"typescript": "^4.8.4",
"vscode-test": "^1.6.1"
},
"extensionDependencies": [
"ms-dotnettools.csharp"
]
}