-
Notifications
You must be signed in to change notification settings - Fork 10
/
package.json
804 lines (804 loc) · 30.8 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
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
{
"name": "sdfv",
"displayName": "DaCe SDFG Editor",
"description": "Transform and optimize data-centric programs with a click of a button",
"version": "1.7.11",
"engines": {
"vscode": "^1.75.0"
},
"categories": [
"Visualization",
"Programming Languages",
"Other"
],
"activationEvents": [
"onDebug",
"onDebugResolve:dace-debug",
"onLanguage:python"
],
"main": "./dist/extension.js",
"publisher": "phschaad",
"author": "SPCL at ETH Zurich",
"bugs": {
"url": "https://github.com/spcl/dace-vscode/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/spcl/dace-vscode"
},
"icon": "icon.png",
"extensionDependencies": [
"benjamin-simmonds.pythoncpp-debug"
],
"capabilities": {
"untrustedWorkspaces": {
"supported": "limited",
"restrictedConfigurations": [
"dace.backend.interpreterPath"
],
"description": "Certain functionality, like executing or transforming SDFGs, might be unavailable in untrusted workspaces to keep you safe."
}
},
"contributes": {
"debuggers": [
{
"type": "sdfg-python",
"label": "SDFG with Python",
"configurationAttributes": {
"launch": {
"properties": {
"program": {
"type": "string",
"description": "The specific SDFG to run."
},
"profile": {
"type": "boolean",
"description": "Whether or not to profile with this run."
}
}
}
},
"initialConfigurations": [
{
"type": "sdfg-python",
"request": "launch",
"name": "SDFG: Run current file"
}
],
"configurationSnippets": [
{
"label": "SDFG: Run current file",
"description": "A new configuration for running the currently open SDFG.",
"body": {
"type": "sdfg-python",
"request": "launch",
"name": "SDFG: Run current file"
}
},
{
"label": "SDFG: Profile current file",
"description": "A new configuration for measuring the runtime of the currently open SDFG.",
"body": {
"type": "sdfg-python",
"request": "launch",
"profile": true,
"name": "SDFG: Profile current file"
}
}
]
},
{
"type": "dace-debug",
"label": "DaCe debugger",
"languages": [
"python"
],
"configurationAttributes": {
"launch": {
"properties": {
"pythonLaunchName": {
"type": "string",
"description": "The name of your python launch config if `pythonConfig: custom`",
"default": "Python: Current File"
},
"cppAttachName": {
"type": "string",
"description": "The name of your C++ attach config if `cppConfig: custom`",
"default": "(Windows) Attach"
},
"pythonConfig": {
"enum": [
"custom",
"default"
],
"description": "Pick custom to manually define the python Attach config, otherwise the default python configuration will be used",
"default": "default"
},
"cppConfig": {
"enum": [
"custom",
"default"
],
"description": "Pick custom to manually define the C++ Attach config, otherwise based on your operating system either (Windows) Attach or (gdb) Attach will be used",
"default": "default"
},
"buildType": {
"enum": [
"Debug",
"RelWithDebInfo"
],
"description": "Setting the build type to RelWithDebInfo will optimize the compilation, however, there is no guaranty that every breakpoint will hit.",
"default": "Debug"
},
"daCeDev": {
"type": "boolean",
"description": "Adds some DaCe developer features. Example: creates CODEGEN map",
"default": "false"
}
}
}
},
"configurationSnippets": [
{
"label": "DaCe: Run current Program",
"description": "A new configuration for debugging a DaCe program with mixed debugging",
"body": {
"name": "DaCe: debug",
"type": "dace-debug",
"request": "launch",
"pythonConfig": "default",
"cppConfig": "default"
}
}
]
}
],
"configuration": [
{
"title": "DaCe SDFG Optimizer",
"properties": {
"dace.sdfv.layout": {
"type": "string",
"default": "vertical",
"enum": [
"horizontal",
"vertical"
],
"enumDescriptions": [
"Split the SDFG Optimizer layout horizontally",
"Split the SDFG Optimizer layout vertically"
]
},
"dace.sdfv.minimap": {
"type": "boolean",
"default": true,
"description": "Show a minimap in the top right corner of the SDFG editor"
},
"dace.sdfv.showAccessNodes": {
"type": "boolean",
"default": true,
"description": "Show access nodes in the SDFG editor"
},
"dace.sdfv.showStateNames": {
"type": "boolean",
"default": true,
"description": "Show the names of SDFG states in the SDFG editor"
},
"dace.sdfv.showMapSchedules": {
"type": "boolean",
"default": true,
"description": "Show a label for map schedules in the SDFG editor"
},
"dace.sdfv.showDataDescriptorSizes": {
"type": "boolean",
"default": false,
"description": "Show the size of data descriptors on access nodes instead of their size"
},
"dace.sdfv.summarizeLargeNumbersOfEdges": {
"type": "boolean",
"default": false,
"description": "Hide / summarize edges for nodes where a large number of edges are connected"
},
"dace.sdfv.inclusiveRanges": {
"type": "boolean",
"default": false,
"description": "Use inclusive range labels in the SDFG editor"
},
"dace.sdfv.useVerticalStateMachineLayout": {
"type": "boolean",
"default": false,
"description": "Use a vertical layout for state machines in the SDFG editor"
},
"dace.sdfv.useVerticalScrollNavigation": {
"type": "boolean",
"default": false,
"description": "Use a vertical scroll navigation in the SDFG editor"
},
"dace.sdfv.bindToViewport": {
"type": "boolean",
"default": true,
"description": "Restrict panning to ensure the graph is always visible"
},
"dace.sdfv.adaptiveContentHiding": {
"type": "boolean",
"default": true,
"description": "Adaptively hide content in the SDFG editor based on the zoom level"
},
"dace.sdfv.alwaysOnISEdgeLabels": {
"type": "boolean",
"default": true,
"description": "Always show interstate edge labels"
},
"dace.sdfv.curvedEdges": {
"type": "boolean",
"default": true,
"description": "Draw edges with curves (may impact rendering performance)"
},
"dace.sdfv.ranksep": {
"type": "integer",
"default": 30,
"minimum": 10,
"maximum": 100,
"description": "Vertical node spacing"
},
"dace.sdfv.nodesep": {
"type": "integer",
"default": 50,
"minimum": 0,
"maximum": 100,
"description": "Horizontal node spacing"
},
"dace.sdfv.taskletLOD": {
"type": "number",
"default": 0.35,
"minimum": 0,
"maximum": 5,
"description": "Zoom-level threshold for drawing tasklet contents"
},
"dace.sdfv.scopeLOD": {
"type": "number",
"default": 0.75,
"minimum": 0,
"maximum": 5,
"description": "Zoom threshold for drawing simple versions of scopes"
},
"dace.sdfv.edgeLOD": {
"type": "number",
"default": 5,
"minimum": 0,
"maximum": 10,
"description": "Zoom threshold for drawing memlets and control flow edges"
},
"dace.sdfv.nodeLOD": {
"type": "number",
"default": 5,
"minimum": 0,
"maximum": 10,
"description": "Zoom threshold for drawing node shapes and labels"
},
"dace.sdfv.textLOD": {
"type": "number",
"default": 1.5,
"minimum": 0,
"maximum": 10,
"description": "Zoom threshold for drawing node text"
},
"dace.sdfv.nestedLOD": {
"type": "number",
"default": 100,
"minimum": 0,
"maximum": 1000,
"description": "Zoom threshold for drawing contents of control flow blocks (including states) and nested SDFGs"
},
"dace.backend.interpreterPath": {
"type": "string",
"default": "",
"description": "Python interpreter path to use for the DaCe backend. Leave blank to use your default Python interpreter."
},
"dace.backend.port": {
"type": "number",
"default": -1,
"description": "Set a fixed port to use for the DaCe backend. Setting this to -1 randomly picks an unused port when launching the backend."
},
"dace.optimization.customTransformationsPaths": {
"type": "array",
"default": [],
"description": "Paths to search for custom transformations"
},
"dace.general.autoRefreshOnDocumentChange": {
"type": "boolean",
"default": false,
"description": "Automatically update SDFG editor contents if file contents have changed"
},
"dace.general.autoOpenSdfgs": {
"type": "string",
"default": "Ask",
"enum": [
"Always",
"Ask",
"Never"
],
"enumDescriptions": [
"Automatically open any newly generated SDFG",
"Ask when a new SDFG is generated, whether or not it should be opened",
"Never automatically open newly generated SDFGs, and don't ask"
]
},
"dace.general.autoOpenInstrumentationReports": {
"type": "string",
"default": "Ask",
"enum": [
"Always",
"Ask",
"Never"
],
"enumDescriptions": [
"Automatically load all newly generated instrumentation reports",
"Ask when a new instrumentation report is generated, whether or not it should be loaded",
"Never automatically load newly generated instrumentation reports, and don't ask"
]
}
}
}
],
"breakpoints": [
{
"language": "python"
},
{
"language": "cpp"
}
],
"languages": [
{
"id": "sdfg",
"extensions": [
".sdfg",
".sdfgz"
],
"aliases": [
"SDFG",
"sdfg"
],
"icon": {
"dark": "media/resources/icons/sdfg.svg",
"light": "media/resources/icons/sdfg.svg"
},
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "sdfg",
"scopeName": "source.sdfg",
"path": "./syntaxes/SDFG.tmLanguage.json"
}
],
"customEditors": [
{
"viewType": "sdfgCustom.sdfv",
"displayName": "SDFG Viewer",
"selector": [
{
"filenamePattern": "*.sdfg"
}
],
"priority": "default"
},
{
"viewType": "compressedSdfgCustom.sdfv",
"displayName": "SDFG Viewer (compressed)",
"selector": [
{
"filenamePattern": "*.sdfgz"
}
],
"priority": "default"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "transformation-explorer",
"title": "SDFG Optimization",
"icon": "media/resources/icons/dace-hollow.svg"
}
]
},
"views": {
"transformation-explorer": [
{
"id": "transformationList",
"type": "webview",
"name": "Transformations",
"icon": "media/resources/icons/dace-hollow.svg",
"contextualTitle": "SDFG Transformation Explorer"
},
{
"id": "transformationHistory",
"type": "webview",
"name": "Transformation History",
"icon": "media/resources/icons/dace-hollow.svg",
"contextualTitle": "SDFG Transformation History"
},
{
"id": "sdfgAnalysis",
"type": "webview",
"name": "SDFG Analysis",
"icon": "media/resources/icons/dace-hollow.svg",
"contextualTitle": "SDFG Analysis"
},
{
"id": "sdfgOutline",
"type": "webview",
"name": "SDFG Outline",
"icon": "media/resources/icons/dace-hollow.svg",
"contextualTitle": "SDFG Outline"
},
{
"id": "daceInterface",
"type": "webview",
"name": "DaCe Backend",
"icon": "media/resources/icons/dace-hollow.svg",
"contextualTitle": "DaCe Python Backend"
}
],
"debug": [
{
"id": "sdfgBreakpoints",
"type": "webview",
"name": "SDFG Breakpoints",
"contextualTitle": "SDFG Breakpoints"
}
]
},
"viewsWelcome": [
{
"view": "transformationList",
"contents": "No active SDFG"
},
{
"view": "transformationHistory",
"contents": "No active SDFG"
},
{
"view": "sdfgAnalysis",
"contents": "No active SDFG"
},
{
"view": "sdfgOutline",
"contents": "No active SDFG"
}
],
"commands": [
{
"command": "sdfg.debug.run",
"title": "Run the current SDFG",
"category": "SDFV",
"enablement": "!inDebugMode",
"icon": "$(play)"
},
{
"command": "sdfg.debug.profile",
"title": "Profile the current SDFG",
"category": "SDFV",
"enablement": "!inDebugMode",
"icon": "$(watch)"
},
{
"command": "sdfg.goto.sdfg",
"title": "Open the SDFG file",
"category": "SDFV",
"icon": "$(preview)"
},
{
"command": "sdfg.goto.cpp",
"title": "Open the C++ file",
"category": "SDFV",
"icon": "$(code)"
},
{
"command": "sdfg.goto.py",
"title": "Open the source file",
"category": "SDFV",
"icon": "$(code)"
},
{
"command": "sdfg.sourcefiles",
"title": "All source files",
"category": "SDFV",
"icon": "$(code)"
},
{
"command": "sdfg.compile",
"title": "Compile the SDFG file",
"category": "SDFV",
"icon": {
"dark": "media/resources/icons/dark/build.svg",
"light": "media/resources/icons/light/build.svg"
}
},
{
"command": "transformationList.addCustomFromDir",
"title": "Load Custom Transformations From Folder",
"icon": "$(file-directory-create)"
},
{
"command": "transformationList.addCustom",
"title": "Load Custom Transformations",
"icon": "$(file-add)"
},
{
"command": "transformationList.sync",
"title": "Refresh Transformations",
"icon": {
"dark": "media/resources/icons/dark/refresh.svg",
"light": "media/resources/icons/light/refresh.svg"
}
},
{
"command": "transformationHistory.sync",
"title": "Refresh Transformation History",
"icon": {
"dark": "media/resources/icons/dark/refresh.svg",
"light": "media/resources/icons/light/refresh.svg"
}
},
{
"command": "sdfgAnalysis.sync",
"title": "Refresh Analysis",
"icon": {
"dark": "media/resources/icons/dark/refresh.svg",
"light": "media/resources/icons/light/refresh.svg"
}
},
{
"command": "sdfgBreakpoints.sync",
"title": "Refresh SDFG Breakpoints",
"icon": {
"dark": "media/resources/icons/dark/refresh.svg",
"light": "media/resources/icons/light/refresh.svg"
}
},
{
"command": "sdfgOutline.sync",
"title": "Refresh Outline",
"icon": {
"dark": "media/resources/icons/dark/refresh.svg",
"light": "media/resources/icons/light/refresh.svg"
}
},
{
"command": "sdfg.sync",
"title": "Refresh SDFG"
},
{
"command": "sdfg.previewTransformation",
"title": "Preview"
},
{
"command": "sdfg.applyTransformations",
"title": "Apply"
},
{
"command": "sdfg.previewHistoryPoint",
"title": "Preview"
},
{
"command": "sdfg.applyHistoryPoint",
"title": "Revert To"
},
{
"command": "dace.config",
"title": "DaCe: Open .dace.config"
},
{
"command": "dace.debug.clearState",
"title": "DaCe: Clear debug state"
}
],
"menus": {
"commandPalette": [
{
"command": "sdfg.debug.run",
"when": "resourceLangId == sdfg"
},
{
"command": "sdfg.debug.profile",
"when": "resourceLangId == sdfg"
},
{
"command": "sdfg.sync",
"when": "resourceLangId == sdfg"
},
{
"command": "sdfg.goto.sdfg",
"when": "resourceLangId == python"
},
{
"command": "sdfg.goto.cpp",
"when": "resourceLangId == python"
},
{
"command": "sdfg.previewTransformation",
"when": "false"
},
{
"command": "sdfg.applyTransformations",
"when": "false"
},
{
"command": "sdfg.previewHistoryPoint",
"when": "false"
},
{
"command": "sdfg.previewHistoryPoint",
"when": "false"
}
],
"editor/title": [
{
"command": "sdfg.debug.run",
"when": "resourceLangId == sdfg",
"group": "1_run@10"
},
{
"command": "sdfg.debug.profile",
"when": "resourceLangId == sdfg",
"group": "1_run@20"
},
{
"command": "sdfg.sync",
"when": "resourceLangId == sdfg",
"group": "1_run@30"
},
{
"command": "sdfg.goto.sdfg",
"when": "sdfg.showMenu.goto.sdfg == true",
"group": "1_run@10"
},
{
"command": "sdfg.goto.cpp",
"when": "sdfg.showMenu.goto.cpp == true",
"group": "1_run@20"
},
{
"command": "sdfg.goto.py",
"when": "sdfg.showMenu.goto.py == true",
"group": "1_run@30"
},
{
"command": "sdfg.sourcefiles",
"when": "sdfg.showMenu.goto.py == true",
"group": "1_run@40"
},
{
"command": "sdfg.compile",
"group": "navigation@0",
"when": "resourceLangId == sdfg && isWorkspaceTrusted"
}
],
"editor/context": [
{
"command": "sdfg.goto.sdfg",
"when": "sdfg.showMenu.goto.sdfg == true",
"group": "1_run@10"
},
{
"command": "sdfg.goto.cpp",
"when": "sdfg.showMenu.goto.cpp == true",
"group": "1_run@20"
},
{
"command": "sdfg.goto.py",
"when": "sdfg.showMenu.goto.py == true",
"group": "1_run@30"
},
{
"command": "sdfg.sourcefiles",
"when": "sdfg.showMenu.goto.py == true",
"group": "1_run@40"
}
],
"view/title": [
{
"command": "transformationList.addCustom",
"when": "view == transformationList && isWorkspaceTrusted",
"group": "navigation"
},
{
"command": "transformationList.addCustomFromDir",
"when": "view == transformationList && isWorkspaceTrusted",
"group": "navigation"
},
{
"command": "transformationList.sync",
"when": "view == transformationList",
"group": "navigation"
},
{
"command": "transformationHistory.sync",
"when": "view == transformationHistory",
"group": "navigation"
},
{
"command": "sdfgAnalysis.sync",
"when": "view == sdfgAnalysis",
"group": "navigation"
},
{
"command": "sdfgBreakpoints.sync",
"when": "view == sdfgBreakpoints",
"group": "navigation"
},
{
"command": "sdfgOutline.sync",
"when": "view == sdfgOutline",
"group": "navigation"
}
]
}
},
"scripts": {
"clean": "rimraf dist",
"vscode:prepublish": "npm run clean && npm run webpack-prod",
"compile": "tsc -p ./",
"lint": "eslint src --ext ts",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"test": "node ./out/test/runTest.js",
"webpack": "npm run clean && webpack --mode development",
"webpack-prod": "npm run clean && webpack --mode production",
"webpack-dev": "npm run clean && webpack --mode development --watch",
"postinstall": "patch-package --patch-dir ./packages/sdfv/patches"
},
"devDependencies": {
"@types/dagre": "^0.7.52",
"@types/glob": "^8.0.0",
"@types/jquery": "^3.5.16",
"@types/jquery-editable-select": "^2.2.1",
"@types/mocha": "^10.0.1",
"@types/node": "^12.20.55",
"@types/semver": "^7.5.8",
"@types/uuid": "^8.3.4",
"@types/vscode": "^1.75.0",
"@typescript-eslint/eslint-plugin": "^8.4.0",
"@typescript-eslint/parser": "^8.4.0",
"@vscode/test-electron": "^2.2.2",
"autoprefixer": "^10.4.13",
"copy-webpack-plugin": "^11.0.0",
"css-loader": "^7.1.2",
"eslint": "^9.9.1",
"file-loader": "^6.2.0",
"glob": "^8.0.3",
"mocha": "^10.2.0",
"postcss-loader": "^8.1.1",
"rimraf": "^6.0.1",
"sass": "^1.77.6",
"sass-loader": "^16.0.1",
"style-loader": "^4.0.0",
"ts-loader": "^9.5.1",
"typescript": "^5.5.4",
"webpack": "^5.94.0",
"webpack-cli": "^5.1.4"
},
"dependencies": {
"@popperjs/core": "^2.11.6",
"@vscode/debugadapter": "^1.58.0",
"@vscode/debugprotocol": "^1.58.0",
"bootstrap": "^5.3.3",
"browserify-zlib": "^0.2.0",
"dagre": "^0.8.5",
"jquery": "^3.7.1",
"jquery-editable-select": "^2.2.5",
"material-symbols": "^0.22.2",
"monaco-editor": "^0.51.0",
"process": "^0.11.10",
"semver": "^7.6.2",
"stream-browserify": "^3.0.0",
"uuid": "^9.0.0"
},
"workspaces": [
"./packages/sdfv"
]
}