forked from Dart-Code/Dart-Code
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
703 lines (703 loc) · 20.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
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
{
"name": "dart-code",
"displayName": "Dart Code",
"description": "Dart, Flutter and Fuchsia support for Visual Studio Code.",
"version": "2.12.0-dev",
"publisher": "Dart-Code",
"engines": {
"vscode": "^1.21.0"
},
"license": "SEE LICENSE IN LICENSE",
"bugs": {
"url": "https://github.com/Dart-Code/Dart-Code/issues"
},
"homepage": "https://dartcode.org/",
"repository": {
"type": "git",
"url": "https://github.com/Dart-Code/Dart-Code.git"
},
"categories": [
"Languages",
"Snippets",
"Linters",
"Formatters",
"Debuggers"
],
"keywords": [
"dart",
"flutter",
"fuchsia",
"multi-root ready"
],
"icon": "media/icon.png",
"activationEvents": [
"onLanguage:dart",
"onView:dartPackages",
"workspaceContains:**/pubspec.yaml",
"workspaceContains:**/*.dart",
"onCommand:flutter.createProject",
"onCommand:flutter.doctor"
],
"main": "./out/src/extension",
"contributes": {
"languages": [
{
"id": "dart",
"extensions": [
".dart"
],
"aliases": [
"Dart"
],
"configuration": "./syntaxes/dart-language-configuration.json"
}
],
"grammars": [
{
"language": "dart",
"scopeName": "source.dart",
"path": "./syntaxes/dart.json"
}
],
"colors": [
{
"id": "dart.closingLabels",
"description": "Color of closing labels rendered for nested Dart constructs.",
"defaults": {
"dark": "tab.inactiveForeground",
"light": "tab.inactiveForeground",
"highContrast": "tab.inactiveForeground"
}
}
],
"commands": [
{
"command": "flutter.createProject",
"title": "New Project",
"category": "Flutter"
},
{
"command": "pub.get",
"title": "Get Packages",
"category": "Pub",
"icon": {
"light": "./media/commands/pull.svg",
"dark": "./media/commands/pull-inverse.svg"
}
},
{
"command": "pub.upgrade",
"title": "Upgrade Packages",
"category": "Pub",
"icon": {
"light": "./media/commands/pull.svg",
"dark": "./media/commands/pull-inverse.svg"
}
},
{
"command": "dart.organizeDirectives",
"title": "Organize Directives",
"category": "Dart"
},
{
"command": "dart.sortMembers",
"title": "Sort Members",
"category": "Dart"
},
{
"command": "dart.showTypeHierarchy",
"title": "Show Type Hierarchy",
"category": "Dart"
},
{
"command": "dart.openObservatory",
"title": "Open Observatory",
"category": "Dart"
},
{
"command": "dart.changeSdk",
"title": "Change SDK",
"category": "Dart"
},
{
"command": "dart.changeFlutterSdk",
"title": "Change SDK",
"category": "Flutter"
},
{
"command": "flutter.packages.get",
"title": "Get Packages",
"category": "Flutter",
"icon": {
"light": "./media/commands/pull.svg",
"dark": "./media/commands/pull-inverse.svg"
}
},
{
"command": "flutter.packages.upgrade",
"title": "Upgrade Packages",
"category": "Flutter",
"icon": {
"light": "./media/commands/pull.svg",
"dark": "./media/commands/pull-inverse.svg"
}
},
{
"command": "flutter.doctor",
"title": "Run Flutter Doctor",
"category": "Flutter"
},
{
"command": "flutter.toggleDebugPainting",
"title": "Toggle Debug Painting",
"category": "Flutter"
},
{
"command": "flutter.togglePerformanceOverlay",
"title": "Toggle Performance Overlay",
"category": "Flutter"
},
{
"command": "flutter.togglePlatform",
"title": "Toggle Platform",
"category": "Flutter"
},
{
"command": "flutter.toggleRepaintRainbow",
"title": "Toggle Repaint Rainbow",
"category": "Flutter"
},
{
"command": "flutter.toggleSlowAnimations",
"title": "Toggle Slow Animations",
"category": "Flutter"
},
{
"command": "flutter.toggleDebugModeBanner",
"title": "Toggle Debug-Mode Banner",
"category": "Flutter"
},
{
"command": "flutter.togglePaintBaselines",
"title": "Toggle Baseline Painting",
"category": "Flutter"
},
{
"command": "flutter.fullRestart",
"title": "Full Restart",
"category": "Flutter"
},
{
"command": "flutter.hotReload",
"title": "Hot Reload",
"category": "Flutter"
},
{
"command": "flutter.openTimeline",
"title": "Open Observatory Timeline",
"category": "Flutter"
},
{
"command": "flutter.changeDevice",
"title": "Change Device",
"category": "Flutter"
}
],
"keybindings": [
{
"command": "dart.organizeDirectives",
"key": "alt+shift+o",
"when": "editorLangId == dart"
},
{
"command": "dart.showTypeHierarchy",
"key": "f4",
"mac": "f4",
"when": "editorLangId == dart"
},
{
"command": "flutter.fullRestart",
"when": "dart-code:flutterProjectLoaded && inDebugMode",
"key": "ctrl+f5"
}
],
"menus": {
"commandPalette": [
{
"command": "flutter.createProject"
},
{
"command": "pub.get",
"when": "dart-code:dartProjectLoaded"
},
{
"command": "pub.upgrade",
"when": "dart-code:dartProjectLoaded"
},
{
"command": "dart.organizeDirectives",
"when": "dart-code:dartProjectLoaded && editorLangId == dart"
},
{
"command": "dart.sortMembers",
"when": "dart-code:dartProjectLoaded && editorLangId == dart"
},
{
"command": "dart.showTypeHierarchy",
"when": "dart-code:dartProjectLoaded && editorLangId == dart"
},
{
"command": "dart.openObservatory",
"when": "dart-code:dartProjectLoaded && inDebugMode"
},
{
"command": "dart.changeSdk",
"when": "dart-code:dartProjectLoaded"
},
{
"command": "dart.changeFlutterSdk",
"when": "dart-code:flutterProjectLoaded"
},
{
"command": "flutter.packages.get",
"when": "dart-code:flutterProjectLoaded"
},
{
"command": "flutter.packages.upgrade",
"when": "dart-code:flutterProjectLoaded"
},
{
"command": "flutter.doctor"
},
{
"command": "flutter.toggleDebugPainting",
"when": "dart-code:serviceExtension.ext.flutter.debugPaint"
},
{
"command": "flutter.togglePerformanceOverlay",
"when": "dart-code:serviceExtension.ext.flutter.showPerformanceOverlay"
},
{
"command": "flutter.togglePlatform",
"when": "dart-code:serviceExtension.ext.flutter.platformOverride"
},
{
"command": "flutter.toggleRepaintRainbow",
"when": "dart-code:serviceExtension.ext.flutter.repaintRainbow"
},
{
"command": "flutter.toggleSlowAnimations",
"when": "dart-code:serviceExtension.ext.flutter.timeDilation"
},
{
"command": "flutter.toggleDebugModeBanner",
"when": "dart-code:serviceExtension.ext.flutter.debugAllowBanner"
},
{
"command": "flutter.togglePaintBaselines",
"when": "dart-code:serviceExtension.ext.flutter.debugPaintBaselinesEnabled"
},
{
"command": "flutter.fullRestart",
"when": "dart-code:flutterProjectLoaded && inDebugMode"
},
{
"command": "flutter.hotReload",
"when": "dart-code:flutterProjectLoaded && inDebugMode"
},
{
"command": "flutter.openTimeline",
"when": "dart-code:flutterProjectLoaded && inDebugMode"
},
{
"command": "flutter.changeDevice",
"when": "dart-code:flutterProjectLoaded"
}
],
"editor/title": [
{
"when": "resourceFilename == pubspec.yaml && dart-code:dartProjectLoaded && !dart-code:flutterProjectLoaded",
"command": "pub.get",
"alt": "pub.upgrade",
"group": "navigation"
},
{
"when": "resourceFilename == pubspec.yaml && dart-code:flutterProjectLoaded",
"command": "flutter.packages.get",
"alt": "flutter.packages.upgrade",
"group": "navigation"
}
],
"editor/context": [
{
"when": "resourceFilename == pubspec.yaml && dart-code:dartProjectLoaded && !dart-code:flutterProjectLoaded",
"command": "pub.get"
},
{
"when": "resourceFilename == pubspec.yaml && dart-code:dartProjectLoaded && !dart-code:flutterProjectLoaded",
"command": "pub.upgrade"
},
{
"when": "resourceFilename == pubspec.yaml && dart-code:flutterProjectLoaded",
"command": "flutter.packages.get"
},
{
"when": "resourceFilename == pubspec.yaml && dart-code:flutterProjectLoaded",
"command": "flutter.packages.upgrade"
}
],
"explorer/context": [
{
"when": "resourceFilename == pubspec.yaml && dart-code:dartProjectLoaded && !dart-code:flutterProjectLoaded",
"command": "pub.get"
},
{
"when": "resourceFilename == pubspec.yaml && dart-code:dartProjectLoaded && !dart-code:flutterProjectLoaded",
"command": "pub.upgrade"
},
{
"when": "resourceFilename == pubspec.yaml && dart-code:flutterProjectLoaded",
"command": "flutter.packages.get"
},
{
"when": "resourceFilename == pubspec.yaml && dart-code:flutterProjectLoaded",
"command": "flutter.packages.upgrade"
}
]
},
"views": {
"explorer": [
{
"id": "dartPackages",
"name": "Dependencies",
"when": "dart-code:dartProjectLoaded && !dart-code:hidePackageTree"
}
]
},
"configurationDefaults": {
"[dart]": {
"editor.tabSize": 2,
"editor.insertSpaces": true
}
},
"configuration": {
"type": "object",
"title": "Dart Configuration",
"properties": {
"dart.closingLabels": {
"type": "boolean",
"default": true,
"description": "Whether to show annotations against constructor, method invocations and lists that span multiple lines.",
"scope": "window"
},
"dart.debugSdkLibraries": {
"type": "boolean",
"default": false,
"description": "Whether SDK libraries should be marked as debuggable.",
"scope": "resource"
},
"dart.debugExternalLibraries": {
"type": "boolean",
"default": false,
"description": "Whether external libraries should be marked as debuggable.",
"scope": "resource"
},
"dart.sdkPath": {
"type": "string",
"description": "The location of the Dart SDK to use for analyzing and executing code. If blank, Dart Code will attempt to find it from the PATH environment variable.",
"scope": "window"
},
"dart.sdkPaths": {
"type": "array",
"description": "An array of strings that are either Dart SDKs or folders that contains multiple Dart SDKs in sub-folders. When set, the version number in the status bar will be clickable to quickly switch between SDKs.",
"items": {
"type": "string"
},
"scope": "window"
},
"dart.lineLength": {
"type": "integer",
"default": 80,
"description": "The maximum length of a line of code. This is used by the document formatter.",
"scope": "resource"
},
"dart.insertArgumentPlaceholders": {
"type": "boolean",
"default": true,
"description": "Whether to insert argument placeholders during code completions.",
"scope": "resource"
},
"dart.showTodos": {
"type": "boolean",
"default": true,
"description": "Whether to show TODOs in the Problems list.",
"scope": "window"
},
"dart.reportAnalyzerErrors": {
"type": "boolean",
"default": true,
"description": "Offer to report analysis server exceptions when they occur.",
"scope": "window"
},
"dart.allowAnalytics": {
"type": "boolean",
"default": true,
"description": "Sends analytics such as startup timings, frequency of use of features and analysis server crashes.",
"scope": "window"
},
"dart.checkForSdkUpdates": {
"type": "boolean",
"default": true,
"description": "Checks whether you are using the latest version of the Dart SDK at startup.",
"scope": "window"
},
"dart.pubAdditionalArgs": {
"type": "array",
"default": [],
"description": "Additional args to pass to pub get and pub upgrade commands (eg. --packages-dir).",
"scope": "resource",
"items": {
"type": "string"
}
},
"dart.runPubGetOnPubspecChanges": {
"type": "boolean",
"default": true,
"description": "Automatically runs `pub get` whenever pubspec.yaml is saved.",
"scope": "resource"
},
"dart.promptToGetPackages": {
"type": "boolean",
"default": true,
"description": "Prompt to get packages when opening a project with out of date packages.",
"scope": "resource"
},
"dart.promptToUpgradeWorkspace": {
"type": "boolean",
"default": true,
"description": "Prompt to upgrade folders to Workspace Folders when projects are detected in sub-folders.",
"scope": "resource"
},
"dart.showLintNames": {
"type": "boolean",
"default": false,
"description": "Whether to show the names of linter rules in the problems panel to make it easier to `// ignore:`.",
"scope": "window"
},
"dart.flutterSdkPath": {
"type": "string",
"description": "The location of the Flutter SDK to use. If blank, Dart Code will attempt to find it from the project folder, FLUTTER_ROOT environment variable and the PATH environment variable.",
"scope": "window"
},
"dart.flutterSdkPaths": {
"type": "array",
"description": "An array of strings that are either Flutter SDKs or folders that contains multiple Flutter SDKs in sub-folders. When set, the version number in the status bar will be clickable to quickly switch between SDKs.",
"items": {
"type": "string"
},
"scope": "window"
},
"dart.flutterHotReloadOnSave": {
"type": "boolean",
"default": true,
"description": "Whether to automatically send a 'hot reload' request during a Flutter debug session when saving files.",
"scope": "window"
},
"dart.analyzeAngularTemplates": {
"type": "boolean",
"default": true,
"description": "Whether to enable analysis for AngularDart templates (requires the angular_analyzer_plugin).",
"scope": "window"
},
"dart.organizeDirectivesOnSave": {
"type": "boolean",
"default": false,
"description": "Whether to automatically execute Organize Directives when saving files.",
"scope": "window"
},
"dart.previewDart2": {
"description": "Whether to enable previewing Dart 2.0 functionality such as optional new/const.\n\ntrue: send --preview-dart-2\nfalse: send --no-preview-dart-2\nundefined: do not send a flag",
"scope": "window"
},
"dart.analyzerAdditionalArgs": {
"type": "array",
"description": "Additional arguments to pass to the Dart analysis server.\nThis is a diagnostic setting that should not normally be set.",
"scope": "window",
"items": {
"type": "string"
}
},
"dart.analyzerDiagnosticsPort": {
"type": "number",
"description": "The port number to be used for the Dart analysis server diagnostics.\nThis is a diagnostic setting that should not normally be set.",
"scope": "window"
},
"dart.analyzerInstrumentationLogFile": {
"type": "string",
"description": "The path to a log file for the Dart analysis server built-in instrumentation.\nThis is a diagnostic setting that should not normally be set.",
"scope": "window"
},
"dart.analyzerLogFile": {
"type": "string",
"description": "The path to a log file for the Dart analysis server communication.\nThis is a diagnostic setting that should not normally be set.",
"scope": "window"
},
"dart.analyzerObservatoryPort": {
"type": "number",
"description": "The port number to be used for the Dart analysis server observatory.\nThis is a diagnostic setting that should not normally be set.",
"scope": "window"
},
"dart.analyzerPath": {
"type": "string",
"description": "The path to a custom Dart analysis server.\nThis is a diagnostic setting that should not normally be set.",
"scope": "window"
},
"dart.flutterDaemonLogFile": {
"type": "string",
"description": "The path to a log file for `flutter daemon` communication.\nThis is a diagnostic setting that should not normally be set.",
"scope": "window"
},
"dart.flutterRunLogFile": {
"type": "string",
"description": "The path to a log file for `flutter run` communication.\nThis is a diagnostic setting that should not normally be set.",
"scope": "resource"
},
"dart.flutterTestLogFile": {
"type": "string",
"description": "The path to a log file for `flutter test` communication.\nThis is a diagnostic setting that should not normally be set.",
"scope": "resource"
},
"dart.observatoryLogFile": {
"type": "string",
"description": "The path to a log file for Observatory communication.\nThis is a diagnostic setting that should not normally be set.",
"scope": "resource"
},
"dart.vmAdditionalArgs": {
"type": "array",
"default": [],
"description": "Additional args to pass to the Dart VM when running/debugging apps.",
"scope": "resource",
"items": {
"type": "string"
}
}
}
},
"debuggers": [
{
"type": "dart",
"label": "Dart & Flutter",
"program": "./out/src/debug/dart_debug_entry.js",
"runtime": "node",
"languages": [
"dart"
],
"enableBreakpointsFor": {
"languageIds": [
"dart"
]
},
"configurationAttributes": {
"launch": {
"properties": {
"cwd": {
"type": "string",
"description": "Workspace root."
},
"checkedMode": {
"type": "boolean",
"description": "Whether to run the VM in checked mode.",
"default": true
},
"program": {
"type": "string",
"description": "Path to the script to start (eg. bin/main.dart or lib/main.dart)."
},
"previewDart2": {
"description": "Whether to enable previewing Dart 2.0 functionality such as optional new/const.\n\ntrue: send --preview-dart-2\n\nfalse: send --no-preview-dart-2\n\nnull: do not send a flag"
},
"flutterMode": {
"description": "The mode for launching the Flutter application:\n\ndebug: Turns on all assertions, includes all debug information, enables all debugger aids and optimizes for fast dev cycles\n\nrelease: Turns off all assertions, strips as much debug information as possible, turns of debugger aids and optimises for fast startup, fast execution and small package sizes.\n\nprofile: Same as release mode exept profiling aids and tracing are enabled.",
"enum": [
"debug",
"release",
"profile"
],
"default": "debug"
},
"args": {
"type": "array",
"description": "Command line arguments to the application.",
"items": {
"type": "string"
}
}
}
}
},
"configurationSnippets": [
{
"label": "Dart",
"description": "Launch and debug Dart applications",
"body": {
"name": "Dart",
"type": "dart",
"request": "launch",
"program": "^\"\\${workspaceFolder}/bin/main.dart\""
}
},
{
"label": "Flutter",
"description": "Launch and debug Flutter applications",
"body": {
"name": "Flutter",
"type": "dart",
"request": "launch",
"program": "^\"\\${workspaceFolder}/lib/main.dart\""
}
}
]
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "echo Compiling... && tsc -p ./",
"watch": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"lint": "tslint src/**/*.ts -t verbose",
"test": "npm run compile && npm run write_empty_coverage && npm run remap_empty_coverage && npm run instrument && npm run test-only && npm run report_lcov && npm run report_screen",
"instrument": "cd out/src && nyc instrument . . && cd ../..",
"write_empty_coverage": "cd out/src && nyc --all --reporter=none --include out/src echo && cd ../..",
"remap_empty_coverage": "cd out/src && run-for-every-file --src \"../../.nyc_output/*.json\" --run \"remap-istanbul -i {{src-file}} -o {{src-file}}\" && cd ../..",
"test-only": "node ./out/test/test_all.js",
"report_lcov": "nyc report -r lcovonly",
"report_screen": "nyc report",
"post_result_to_chat": "node ./out/tool/post_to_chat.js"
},
"dependencies": {
"semver": "^5.5.0",
"vscode-debugadapter": "^1.28.0",
"vscode-debugprotocol": "^1.28.0",
"ws": "^1.1.5"
},
"devDependencies": {
"@types/mocha": "^2.2.48",
"@types/node": "^6.0.103",
"@types/semver": "^5.5.0",
"@types/sinon": "^4.3.0",
"@types/ws": "^0.0.38",
"codeclimate-test-reporter": "^0.5.0",
"mocha": "^3.5.3",
"mocha-multi-reporters": "^1.1.7",
"nyc": "^11.6.0",
"remap-istanbul": "^0.11.0",
"run-for-every-file": "^1.1.0",
"signal-exit": "^3.0.2",
"sinon": "^4.4.10",
"supports-color": "^5.3.0",
"tslint": "^5.9.1",
"typescript": "^2.8.1",
"vscode": "^1.1.14"
}
}