-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
837 lines (837 loc) · 30.6 KB
/
Copy pathpackage.json
File metadata and controls
837 lines (837 loc) · 30.6 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
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
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
{
"name": "vscode-flowr",
"publisher": "code-inspect",
"displayName": "R Code Analyzer (flowR)",
"description": "Slicing and analyzing R code courtesy of flowR",
"homepage": "https://github.com/flowr-analysis/vscode-flowr/blob/main/README.md",
"icon": "resources/flowR.png",
"type": "commonjs",
"repository": {
"type": "git",
"url": "https://github.com/flowr-analysis/vscode-flowr"
},
"bugs": {
"url": "https://github.com/flowr-analysis/vscode-flowr/issues",
"email": "florian.sihler@uni-ulm.de"
},
"license": "GPL-3.0",
"version": "0.6.15",
"engines": {
"vscode": "^1.92.0"
},
"categories": [
"Programming Languages",
"Visualization"
],
"keywords": [
"flowR",
"R",
"R Markdown"
],
"activationEvents": [
"onLanguage:r",
"onLanguage:rmd",
"onLanguage:qmd",
"onLanguage:ipynb"
],
"main": "./dist/node/extension.js",
"browser": "./dist/web/extension.js",
"contributes": {
"languages": [
{
"id": "r",
"aliases": [
"R"
],
"extensions": [
".r",
".R"
]
},
{
"id": "rmd",
"aliases": [
"R Markdown",
"rmd"
],
"extensions": [
".Rmd",
".rmd"
]
}
],
"commands": [
{
"command": "vscode-flowr.internal.goto.dependency",
"title": "Go to Dependency",
"category": "flowR",
"icon": "$(link)",
"enablement": "sideBarFocus"
},
{
"command": "vscode-flowr.internal.enable-disable.dependency",
"title": "Toggle Category",
"category": "flowR",
"icon": "$(eye)",
"enablement": "sideBarFocus"
},
{
"command": "vscode-flowr.settings.open",
"title": "Open flowR Settings",
"category": "flowR",
"icon": "$(gear)"
},
{
"command": "vscode-flowr.lint.run",
"icon": "$(bug)",
"title": "Code Quality Analysis (Linter)",
"category": "flowR"
},
{
"command": "vscode-flowr.internal.slice.dependency",
"title": "Show Relevant Code for Dependency (Backward Slice)",
"category": "flowR",
"icon": "$(graph)",
"enablement": "sideBarFocus"
},
{
"command": "vscode-flowr.internal.forward-slice.dependency",
"title": "Show Influence of Dependency (Forward Slice)",
"category": "flowR",
"icon": "$(graph)",
"enablement": "sideBarFocus"
},
{
"command": "vscode-flowr.dependencyView.update",
"title": "Update the Dependency View",
"category": "flowR",
"icon": "$(sync)"
},
{
"command": "vscode-flowr.repl",
"title": "Launch a new flowR REPL",
"icon": "$(terminal)",
"category": "flowR",
"enablement": "!isWeb"
},
{
"command": "vscode-flowr.ast",
"title": "Show Abstract Syntax Tree of the File",
"icon": "$(graph)",
"category": "flowR"
},
{
"command": "vscode-flowr.cfg",
"title": "Show Control Flow Graph of the File",
"icon": "$(graph)",
"category": "flowR"
},
{
"command": "vscode-flowr.call-graph",
"title": "Show Call Graph of the File",
"icon": "$(graph)",
"category": "flowR"
},
{
"command": "vscode-flowr.slice.cursor",
"title": "Show Relevant Code for Cursor Position Once (Backward Slice)",
"icon": "$(search)",
"category": "flowR"
},
{
"command": "vscode-flowr.forward-slice.cursor",
"title": "Show Influence for Cursor Position Once (Forward Slice)",
"icon": "$(search)",
"category": "flowR"
},
{
"command": "vscode-flowr.slice.position",
"title": "Toggle Relevant Code Highlight at Current Position (Backward Slice)",
"category": "flowR"
},
{
"command": "vscode-flowr.forward-slice.position",
"title": "Toggle Influence Highlight at Current Position (Forward Slice)",
"category": "flowR"
},
{
"command": "vscode-flowr.slice.follow.cursor",
"title": "Toggle Relevant Code Highlight at Cursor (Backward Slice)",
"category": "flowR"
},
{
"command": "vscode-flowr.forward-slice.follow.cursor",
"title": "Toggle Influence Highlight at Cursor (Forward Slice)",
"category": "flowR"
},
{
"command": "vscode-flowr.slice.show.in.editor",
"title": "Show Current Backward Slice in Editor (Reconstruct)",
"category": "flowR"
},
{
"command": "vscode-flowr.slice.clear",
"title": "Clear Current Slice Presentation",
"icon": "$(eye-closed)",
"category": "flowR"
},
{
"command": "vscode-flowr.dataflow",
"title": "Show Dataflow Graph",
"icon": "$(graph)",
"category": "flowR"
},
{
"command": "vscode-flowr.session.internal",
"title": "Start Local flowR Shell",
"icon": "$(terminal)",
"category": "flowR",
"enablement": "shellExecutionSupported"
},
{
"command": "vscode-flowr.session.connect",
"title": "Connect to flowR Server",
"icon": "$(server)",
"category": "flowR"
},
{
"command": "vscode-flowr.session.disconnect",
"title": "Disconnect from flowR Server",
"icon": "$(server)",
"category": "flowR"
},
{
"command": "vscode-flowr.feedback",
"title": "Give Feedback (Opens Browser)",
"icon": "$(feedback)",
"category": "flowR"
},
{
"command": "vscode-flowr.telemetry.start-local",
"title": "Start Local Telemetry",
"category": "flowR",
"icon": "$(bug)",
"enablement": "vscode-flowr.hasTelemetry"
},
{
"command": "vscode-flowr.telemetry.stop",
"title": "Stop Telemetry",
"category": "flowR",
"icon": "$(bug)",
"enablement": "vscode-flowr.hasTelemetry"
}
],
"configuration": {
"title": "R Code Analyzer (flowR)",
"properties": {
"vscode-flowr.server.host": {
"type": "string",
"default": "localhost",
"markdownDescription": "The host to use when connecting to a [flowR server](https://github.com/flowr-analysis/flowr/wiki/Interface#-communicating-with-the-server)."
},
"vscode-flowr.server.port": {
"type": "number",
"default": 1042,
"markdownDescription": "The port to use when connecting to a [flowR server](https://github.com/flowr-analysis/flowr/wiki/Interface#-communicating-with-the-server)."
},
"vscode-flowr.server.autoConnect": {
"type": "boolean",
"default": false,
"markdownDescription": "Whether to auto-connect to a [flowR server](https://github.com/flowr-analysis/flowr/wiki/Interface#-communicating-with-the-server) when the extension is loaded."
},
"vscode-flowr.server.connectionType": {
"type": "string",
"default": "auto",
"enum": [
"auto",
"websocket",
"websocket-secure",
"tcp"
],
"enumDescriptions": [
"The extension attempts to connect via websocket and automatically falls back to a TCP connection.",
"The extension connects to a flowR server via websocket (for a server started using --ws).",
"The extension connects to a flowR server via websocket over SSL/TLS (for a server started using --ws).",
"The extension connects to a flowR server via TCP."
],
"markdownDescription": "The connection type that should be used when connecting to a [flowR server](https://github.com/flowr-analysis/flowr/wiki/Interface#-communicating-with-the-server). When running the extension in the browser, settings other than `websocket` and `websocket-secure` are ignored, as websocket mode is always used."
},
"vscode-flowr.r.executable": {
"type": "string",
"default": "",
"markdownDescription": "An absolute path to the R binary to use for the local shell. If this is empty, R is expected to be part of the system's PATH. This setting is ignored when running the extension in the browser, as tree-sitter mode is always used."
},
"vscode-flowr.r.engine": {
"type": "string",
"default": "tree-sitter",
"enum": [
"tree-sitter",
"r-shell"
],
"markdownDescription": "The flowR engine to use when parsi5ng R code. For more information, see the [engines documentation](https://github.com/flowr-analysis/flowr/wiki/Engines). This setting is ignored when running the extension in the browser, as tree-sitter mode is always used."
},
"vscode-flowr.style.sliceOpacity": {
"type": "number",
"default": 0.25,
"minimum": 0,
"maximum": 1,
"markdownDescription": "The opacity that code which isn't part of the current slice should have, between 0 (invisible) and 1 (opaque)."
},
"vscode-flowr.style.sliceDisplay": {
"type": "string",
"default": "text",
"enum": [
"text",
"diff",
"tokens"
],
"enumDescriptions": [
"Code that isn't part of the current slice will be grayed out in the active editor.",
"Open a diff view that shows the current slice and the rest of the file.",
"Highlight the tokens that are part of the current slice."
],
"markdownDescription": "The way that slices should be displayed."
},
"vscode-flowr.style.tokenBackgroundColor": {
"type": "string",
"default": "rgba(0, 127, 0, 0.5)",
"markdownDescription": "The background color for highlighted tokens. This can be any valid CSS color, e.g. `#ff0000`, `rgb(255, 0, 0)`,`rgba(0, 127, 0, 0.5)`, `green`. Theme colors can be used as described [here](https://code.visualstudio.com/api/extension-guides/webview#theming-webview-content), e.g. `var(--vscode-editor-selectionBackground)`."
},
"vscode-flowr.style.onlyHighlightActiveSelection": {
"type": "boolean",
"default": false,
"markdownDescription": "Whether to only highlight the selection in the active editor."
},
"vscode-flowr.style.mermaidMaxTextLength": {
"type": "number",
"default": 500000,
"markdownDescription": "The maximum amount of characters that a Mermaid graph can contain to be parsed and displayed."
},
"vscode-flowr.tree-sitter.timeout": {
"type": "number",
"minimum": 100,
"default": 60000,
"markdownDescription": "How many milliseconds should the extension wait for the tree-sitter engine to start up?"
},
"vscode-flowr.tree-sitter.lax": {
"type": "boolean",
"default": true,
"markdownDescription": "Should flowR use the lax parser for tree-sitter (i.e., allow for parsing errors)?"
},
"vscode-flowr.slice.automaticReconstruct": {
"type": "boolean",
"default": true,
"markdownDescription": "Do you want to automatically view the reconstruction of every slice (i.e., see the standalone slice in an extra window)?"
},
"vscode-flowr.dependencyView.autoReveal": {
"type": "integer",
"default": 10,
"minimum": 0,
"maximum": 999,
"markdownDescription": "If there are less than or equal the given dependencies in the dependency view, reveal them automatically."
},
"vscode-flowr.dependencyView.updateType": {
"type": "string",
"default": "adaptive",
"enum": [
"on change",
"adaptive",
"interval",
"on save",
"never"
],
"markdownEnumDescriptions": [
"Update the dependency view on every change in the active editor.",
"Update on every change until the source becomes too big, then switch to interval.",
"Update the dependency view every n seconds, see `vscode-flowr.dependencyView.updateInterval`.",
"Update the dependency view only when the active editor is saved.",
"Never update the dependency view automatically."
],
"markdownDescription": "When to update the dependency view."
},
"vscode-flowr.dependencyView.updateInterval": {
"type": "number",
"default": 10,
"minimum": 0.5,
"maximum": 999,
"markdownDescription": "Automatically update the dependency view every n seconds."
},
"vscode-flowr.slice.revisitThreshold": {
"type": "integer",
"default": 12,
"minimum": 1,
"markdownDescription": "How often is flowR allowed to revisit, e.g., a function definition to infer more informations before it stops? Currently this only affects the internal session."
},
"vscode-flowr.dependencyView.adaptiveCharacterLimit": {
"type": "number",
"default": 5000,
"minimum": 10,
"markdownDescription": "The number of characters in the source after which the dependency view switches to interval updates."
},
"vscode-flowr.dependencyView.cacheLimit": {
"type": "integer",
"default": 5,
"minimum": 0,
"maximum": 100,
"markdownDescription": "The maximum number of dependency configurations to keep in the cache. This primarily improves the performance when you switch between files frequently (changing this clears the cache)."
},
"vscode-flowr.dependencyView.keepOnError": {
"type": "boolean",
"default": true,
"markdownDescription": "Should the dependency view freeze when the code contains errors? If so, it will automatically retry on the next update (see `vscode-flowr.dependencyView.updateType`)."
},
"vscode-flowr.values.hover": {
"type": "boolean",
"default": true,
"markdownDescription": "Whether to show the resolved values (by flowR's domains) of variables when hovering over them in R files."
},
"vscode-flowr.values.hover.resolve": {
"type": "boolean",
"default": true,
"markdownDescription": "Whether to use flowR's basic value resolve when hovering over variables."
},
"vscode-flowr.values.hover.dataFrames": {
"type": "boolean",
"default": true,
"markdownDescription": "Whether to use flowR's more advanced data frame shape inference."
},
"vscode-flowr.verboseLog": {
"type": "boolean",
"default": false,
"markdownDescription": "Whether to use verbose logging while flowR is active (this will also redirect flowR logs to the output panel)."
},
"vscode-flowr.debug.flowrLogLevel": {
"type": "string",
"default": "Error",
"enum": [
"Silly",
"Trace",
"Debug",
"Info",
"Warn",
"Error",
"Fatal"
],
"markdownDescription": "What logging level should flowR use?"
},
"vscode-flowr.errorMessage.Timer": {
"type": "number",
"default": 5000,
"minimum": 0,
"markdownDescription": "The time in milliseconds after which an error message will be removed from the status bar."
},
"vscode-flowr.config.ignoreSourceCalls": {
"type": "boolean",
"default": false,
"markdownDescription": "Whether source calls should be ignored when analyzing code, causing files sourced using the `source` function to be skipped."
},
"vscode-flowr.config.solver.variableHandling": {
"type": "string",
"default": "alias",
"enum": [
"disabled",
"alias",
"builtin"
],
"markdownEnumDescriptions": [
"Don't resolve constants at all.",
"Use alias tracking to resolve values.",
"Only resolve directly assigned builtin constants."
],
"markdownDescription": "How to resolve variables and their values when analyzing code."
},
"vscode-flowr.config.solver.resolveSource.ignoreCapitalization": {
"type": "boolean",
"default": true,
"markdownDescription": "Find sourced files ignoring their capitalization?"
},
"vscode-flowr.config.solver.resolveSource.inferWorkingDirectory": {
"type": "string",
"enum": [
"no",
"main-script",
"active-script",
"any-script"
],
"enumDescriptions": [
"Do not infer the working directory",
"Use the main script used for the analysis for the working directory",
"Use the active (sourced) script for the working directory",
"Consider all loaded scripts for the working directory"
],
"default": "active-script",
"markdownDescription": "Which working directory to assume when resolving sourced files?"
},
"vscode-flowr.config.solver.resolveSource.searchPath": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"markdownDescription": "Which (additional) paths should be used to resolve sourced files?"
},
"vscode-flowr.config.solver.resolveSource.dropPaths": {
"type": "string",
"enum": [
"no",
"once",
"all"
],
"enumDescriptions": [
"Do not drop any parts of the path from a source",
"Drop the full path and only keep the filename if the path is not found.",
"Try every sub path in a source until a file is found."
],
"default": "once",
"markdownDescription": "How to handle paths in sources that are not found."
},
"vscode-flowr.config.overwriteBuiltIns.loadDefaults": {
"type": "boolean",
"default": true,
"markdownDescription": "When overwriting the builtin definitions of flowR, should the default configuration still be loaded?"
},
"vscode-flowr.config.overwriteBuiltIns.definitions": {
"type": "array",
"default": [],
"markdownDescription": "When overwriting the builtin definitions of flowR, the set of additional definitions to load. For more info on how these need to be formatted, see [the wiki](https://github.com/flowr-analysis/flowr/wiki/Interface#%EF%B8%8F-configuring-flowr)."
},
"vscode-flowr.dependencyView.query.ignoreDefaults": {
"type": "boolean",
"default": false,
"markdownDescription": "When using the dependency view, should the set of functions that are detected by default be ignored/skipped?"
},
"vscode-flowr.dependencyView.query.overrides": {
"type": "object",
"default": {
"libraryFunctions": [],
"sourceFunctions": [],
"readFunctions": [],
"writeFunctions": []
},
"markdownDescription": "When using the dependency view, the set of additional `libraryFunctions`, `sourceFunctions`, `readFunctions` and `writeFunctions` to load. For more info on how these need to be formatted, see [the wiki](https://github.com/flowr-analysis/flowr/wiki/Query-API#dependencies-query)."
},
"vscode-flowr.dependencyView.query.enabledCategories": {
"type": "array",
"items": {
"type": "string",
"enum": [
"library",
"read",
"source",
"write",
"visualize",
"test"
],
"enumDescriptions": [
"Libraries",
"Imported Data",
"Sourced Scripts",
"Outputs",
"Visualizations",
"Tests"
]
},
"default": [
"library",
"read",
"source",
"write",
"visualize",
"test"
],
"markdownDescription": "When using the dependency view, which dependency categories should be detected. Can also be toggled by right-clicking on a category in the dependency view itself."
},
"vscode-flowr.linter.enabledRules": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"deprecated-functions",
"file-path-validity",
"seeded-randomness",
"absolute-file-paths",
"unused-definitions",
"network-functions",
"dataframe-access-validation",
"dead-code",
"useless-loop",
"problematic-eval",
"stop-call"
],
"markdownDescription": "The names of the linting rules that should be enabled. See [the wiki](https://github.com/flowr-analysis/flowr/wiki/Linter#linting-rules) for a list of linting rules and their identifiers. An empty array causes all linting rules to be enabled."
},
"vscode-flowr.linter.ruleConfigs": {
"type": "object",
"default": {},
"markdownDescription": "Custom configurations for enabled linting rules. See [the wiki](https://github.com/flowr-analysis/flowr/wiki/Linter#linting-rules) for a list of linting rules and their configurations. Entries should use rule names as keys and configurations as vaules, for example: `{ \"naming-convention\": { \"caseing\": \"snake_case\" } }`."
},
"vscode-flowr.linter.updateType": {
"type": "string",
"default": "adaptive",
"enum": [
"on change",
"adaptive",
"interval",
"on save",
"never"
],
"markdownEnumDescriptions": [
"Update the linter on every change in the active editor.",
"Update on every change until the source becomes too big, then switch to interval.",
"Update the linter every n seconds, see `vscode-flowr.linter.updateInterval`.",
"Update the linter only when the active editor is saved.",
"Never update the linter automatically."
],
"markdownDescription": "When to update the linter."
},
"vscode-flowr.linter.updateInterval": {
"type": "number",
"default": 10,
"minimum": 0.5,
"maximum": 999,
"markdownDescription": "Automatically update the linter every n seconds (used by adaptive and interval)."
},
"vscode-flowr.linter.adaptiveCharacterLimit": {
"type": "number",
"default": 5000,
"minimum": 10,
"markdownDescription": "The number of characters in the source after which the linter switches to interval updates."
},
"vscode-flowr.diagram.sync": {
"type": "boolean",
"default": true,
"markdownDescription": "If set to true, mermaid diagrams are automatically synced to the selected lines of code in the respective editor by default"
},
"vscode-flowr.diagram.mode": {
"type": "string",
"default": "hide",
"enum": [
"highlight",
"hide"
],
"markdownEnumDescriptions": [
"Selected lines are highlighted in the diagram",
"Only selected lines are shown in the diagram"
]
},
"vscode-flowr.diagram.cfgSimplificationPasses": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"unique-cf-sets",
"analyze-dead-code",
"remove-dead-code",
"to-basic-blocks"
],
"markdownEnumDescriptions": [
"Simplification passes that should be applied to the cfg diagram"
]
},
"vscode-flowr.diagram.simplifyCfg": {
"type": "boolean",
"default": true,
"markdownDescription": "If set to true, cfg diagrams are simplified"
},
"vscode-flowr.diagram.simplifyDfg": {
"type": "boolean",
"default": true,
"markdownDescription": "If set to true, dfg diagrams are simplified"
}
}
},
"menus": {
"editor/context": [
{
"command": "vscode-flowr.slice.position",
"when": "resourceLangId == r"
},
{
"command": "vscode-flowr.forward-slice.position",
"when": "resourceLangId == r"
},
{
"command": "vscode-flowr.slice.cursor",
"when": "resourceLangId == r"
},
{
"command": "vscode-flowr.forward-slice.cursor",
"when": "resourceLangId == r"
},
{
"command": "vscode-flowr.slice.clear",
"when": "resourceLangId == r"
}
],
"view/item/context": [
{
"command": "vscode-flowr.internal.slice.dependency",
"when": "view == flowr-dependencies && viewItem == dependency",
"group": "flowR"
},
{
"command": "vscode-flowr.internal.forward-slice.dependency",
"when": "view == flowr-dependencies && viewItem == dependency",
"group": "flowR"
},
{
"command": "vscode-flowr.internal.goto.dependency",
"when": "view == flowr-dependencies && viewItem == dependency",
"group": "flowR"
},
{
"command": "vscode-flowr.internal.enable-disable.dependency",
"when": "view == flowr-dependencies && viewItem == category",
"group": "flowR"
},
{
"command": "vscode-flowr.internal.enable-disable.dependency",
"when": "view == flowr-dependencies && viewItem == category",
"group": "inline"
}
],
"view/title": [
{
"command": "vscode-flowr.repl",
"when": "view == flowr-dependencies && !isWeb",
"group": "navigation"
},
{
"command": "vscode-flowr.dependencyView.update",
"when": "view == flowr-dependencies",
"group": "navigation@2"
},
{
"command": "vscode-flowr.feedback",
"when": "view == flowr-dependencies",
"group": "navigation@3"
},
{
"command": "vscode-flowr.settings.open",
"when": "view == flowr-dependencies",
"group": "navigation@4"
}
],
"editor/title": [
{
"command": "vscode-flowr.slice.clear",
"when": "resourceLangId == r",
"group": "navigation"
}
]
},
"viewsContainers": {
"activitybar": [
{
"id": "flowr",
"title": "R Code Analyzer (flowR)",
"icon": "resources/flowR.svg"
}
]
},
"viewsWelcome": [
{
"view": "flowr-dependencies",
"contents": "Welcome to flowR!\nOpen an R file to see its dependencies."
}
],
"views": {
"flowr": [
{
"id": "flowr-dependencies",
"icon": "$(notebook-template)",
"name": "Dependencies"
}
]
},
"keybindings": [
{
"command": "vscode-flowr.slice.position",
"key": "alt+p",
"when": "resourceLangId == r"
},
{
"command": "vscode-flowr.slice.cursor",
"key": "alt+s",
"when": "resourceLangId == r"
},
{
"command": "vscode-flowr.slice.clear",
"key": "alt+c",
"when": "resourceLangId == r"
}
]
},
"scripts": {
"vscode:prepublish": "npm run package && npm run package-web",
"copy-wasm-node": "mkdir -p dist/node && cp node_modules/web-tree-sitter/tree-sitter.wasm dist/node && cp node_modules/@davisvaughan/tree-sitter-r/tree-sitter-r.wasm dist/node",
"copy-wasm-web": "mkdir -p dist/web && cp node_modules/web-tree-sitter/tree-sitter.wasm dist/web && cp node_modules/@davisvaughan/tree-sitter-r/tree-sitter-r.wasm dist/web",
"precompile": "npm run copy-wasm-node",
"compile": "webpack",
"prepackage": "npm run copy-wasm-node",
"package": "webpack --mode production --devtool hidden-source-map",
"prewatch": "npm run copy-wasm-node",
"watch": "webpack --watch",
"prewatch-telemetry": "npm run copy-wasm-node",
"watch-telemetry": "webpack --watch --env HAS_TELEMETRY",
"lint": "npx eslint src/",
"compile-tests": "npm run compile && tsc -p . --outDir out",
"pretest": "npm run compile-tests && npm run lint",
"test": "vscode-test --extensionDevelopmentPath=. .",
"generate-changelog": "git log ...$(git tag | tail -n 1) --pretty=format:'- %s' --reverse",
"prebrowser": "npm run package-web",
"browser": "vscode-test-web --extensionDevelopmentPath=. example",
"precompile-web": "npm run copy-wasm-web",
"compile-web": "webpack",
"prepackage-web": "npm run copy-wasm-web",
"package-web": "webpack --mode production --devtool hidden-source-map",
"prewatch-web": "npm run copy-wasm-web",
"watch-web": "webpack --watch"
},
"dependencies": {
"@eagleoutice/flowr": "^2.10.3",
"assert": "^2.1.0",
"browserify-zlib": "^0.2.0",
"constants-browserify": "^1.0.0",
"os-browserify": "^0.3.0",
"path-browserify": "^1.0.1",
"readline": "^1.3.0",
"readline-browser": "^0.0.3",
"readline-sync": "^1.4.10",
"semver": "^7.7.1",
"stream-browserify": "^3.0.0",
"timers-browserify": "^2.0.12",
"util": "^0.12.5"
},
"devDependencies": {
"@eagleoutice/eslint-config-flowr": "^1.0.36",
"@eslint/eslintrc": "^3.3.3",
"@eslint/js": "^9.39.2",
"@types/mocha": "^10.0.10",
"@types/node": "22.x",
"@types/semver": "^7.5.8",
"@types/vscode": "^1.92.0",
"@types/webpack-env": "^1.16.0",
"@types/ws": "^8.5.10",
"@vscode/test-cli": "^0.0.12",
"@vscode/test-electron": "^2.5.2",
"@vscode/test-web": "^0.0.80",
"copy-webpack-plugin": "^12.0.2",
"ifdef-loader": "^2.3.2",
"ts-essentials": "^10.1.1",
"ts-loader": "^9.2.2",
"typescript": "^5.6.2",
"webpack": "^5.38.1",
"webpack-cli": "^4.7.0"
},
"eslintConfig": {
"extends": [
"@eagleoutice/eslint-config-flowr"
],
"rules": {
"tsdoc/syntax": "off"
}
}
}