-
Notifications
You must be signed in to change notification settings - Fork 6
/
package.json
1098 lines (1098 loc) · 45.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
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
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"name": "tools-for-solidity",
"displayName": "Solidity (Wake)",
"version": "1.16.7",
"publisher": "AckeeBlockchain",
"description": "Code fast and secure Solidity smart contracts on Ethereum with a Remix-like experience",
"keywords": [
"solidity",
"ethereum",
"blockchain",
"review",
"audit",
"security",
"compiler",
"remix",
"wake",
"evm",
"solhint"
],
"homepage": "https://ackee.xyz/solidity-extension",
"bugs": {
"url": "https://github.com/Ackee-Blockchain/solidity-for-vscode/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/Ackee-Blockchain/solidity-for-vscode.git"
},
"icon": "images/icon.png",
"engines": {
"vscode": "^1.75.0"
},
"categories": [
"Linters",
"Programming Languages",
"Visualization",
"Testing"
],
"activationEvents": [
"onLanguage:solidity",
"workspaceContains:**/*.sol",
"onLanguage:wake-output"
],
"main": "./dist/extension",
"contributes": {
"configuration": [
{
"title": "Configuration",
"order": -2,
"properties": {
"wake.configuration.use_toml_if_present": {
"type": "boolean",
"default": true,
"description": "Use the configuration TOML file if present instead of the VS Code settings."
},
"wake.configuration.toml_path": {
"type": "string",
"default": "wake.toml",
"description": "Path to the TOML configuration file relative to the workspace root."
},
"Tools-for-Solidity.wake.configuration.autoimport_remappings": {
"type": "boolean",
"default": true,
"description": "Automatically import Foundry remappings from the remappings.txt file in the workspace folder."
}
}
},
{
"title": "Solidity",
"order": -1,
"properties": {
"Tools-for-Solidity.trace.server": {
"scope": "window",
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between VS Code and the language server."
},
"Tools-for-Solidity.Wake.installationMethod": {
"type": "string",
"enum": [
"conda",
"pipx",
"pip",
"manual"
],
"default": "conda",
"markdownDescription": "Method used to install [Wake](https://getwake.io/) language server, which is required for the extension to work."
},
"Tools-for-Solidity.Wake.prerelease": {
"type": "boolean",
"default": false,
"description": "Install pre-release versions of Wake."
},
"Tools-for-Solidity.Wake.pathToExecutable": {
"type": "string",
"markdownDescription": "Path to Wake executable, overrides `#Tools-for-Solidity.Wake.installationMethod#`."
},
"Tools-for-Solidity.Wake.port": {
"type": "integer",
"markdownDescription": "Port on which Wake LSP is listening. Overrides both `#Tools-for-Solidity.Wake.installationMethod#` and `#Tools-for-Solidity.Wake.pathToExecutable#`. Leave empty to use the default port."
},
"Tools-for-Solidity.Wake.compiler.solc.ignoredWarnings": {
"type": "array",
"items": {
"type": [
"integer",
"string"
]
},
"default": [],
"description": "Ignore warnings with these codes from the solc compiler"
}
}
},
{
"title": "Compiler",
"order": 0,
"properties": {
"wake.compiler.solc.allow_paths": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Allow paths passed directly to the solc compiler."
},
"wake.compiler.solc.evm_version": {
"type": "string",
"enum": [
"homestead",
"tangerineWhistle",
"spuriousDragon",
"byzantium",
"constantinople",
"petersburg",
"istanbul",
"berlin",
"london",
"paris",
"shanghai",
"cancun",
"prague",
""
],
"default": "",
"description": "EVM version passed to the solc compiler. If left empty, the compiler will choose the version automatically."
},
"wake.compiler.solc.exclude_paths": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"node_modules",
"venv",
"lib",
"script",
"test"
],
"description": "Files in these paths are excluded from LSP analysis unless imported from other non-excluded files."
},
"wake.compiler.solc.include_paths": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"node_modules"
],
"description": "Include paths used to search for non-relative import paths."
},
"wake.compiler.solc.remappings": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"markdownDescription": "Compiler remappings (see [Solidity documentation](https://docs.soliditylang.org/en/latest/using-the-compiler.html#base-path-and-import-remapping))."
},
"wake.compiler.solc.target_version": {
"type": "string",
"default": "",
"description": "The version of the solc compiler used to compile all project files."
},
"wake.compiler.solc.via_IR": {
"type": [
"boolean",
"null"
],
"default": null,
"enum": [
null,
true,
false
],
"markdownDescription": "Compile the code via the Yul intermediate language (see [Solidity docs](https://docs.soliditylang.org/en/latest/ir-breaking-changes.html)). If not set (null), let the compiler decide."
},
"wake.compiler.solc.optimizer.enabled": {
"type": [
"boolean",
"null"
],
"default": null,
"enum": [
null,
true,
false
],
"description": "Compile the project with solc optimizations enabled. Setting this to 'null' (unset) disables most of the available optimizations. Setting this to 'false' disables all optimizations for Solidity <0.8.6 and has the same behavior as 'null' for Solidity >=0.8.6."
},
"wake.compiler.solc.optimizer.runs": {
"type": "number",
"default": 200,
"description": "Configuration of the optimizer specifying how many times the code is intended to be run. Lower values optimize more for initial deployment cost, while higher values optimize more for high-frequency usage."
}
}
},
{
"title": "Detectors",
"order": 1,
"properties": {
"wake.detectors.exclude": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "List of detectors (identified by their string or integer IDs) to exclude from the analysis."
},
"wake.detectors.only": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "List of detectors (identified by their string or integer IDs) to only use in the analysis."
},
"wake.detectors.ignore_paths": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"test",
"venv"
],
"description": "Any (sub)detections ending in these paths are removed. Intended for project Solidity test files."
},
"wake.detectors.exclude_paths": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"node_modules",
"lib"
],
"description": "A detection is removed if whole (including subdetections) ends up in these paths. Intended for project Solidity dependencies."
}
}
},
{
"title": "Printers",
"order": 2,
"properties": {
"wake.printers.exclude": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "List of printers (identified by their string name) not to run in the LSP server."
},
"wake.printers.only": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "List of printers (identified by their string name) to only run in the LSP server."
}
}
},
{
"title": "Graphs",
"order": 3,
"properties": {
"wake.generator.imports_graph.direction": {
"type": "string",
"enum": [
"TB",
"BT",
"LR",
"RL"
],
"default": "TB",
"markdownDescription": "The direction of the generated imports graph (see [Graphviz docs](https://graphviz.org/docs/attrs/rankdir/))."
},
"wake.generator.imports_graph.imports_direction": {
"type": "string",
"enum": [
"imported-to-importing",
"importing-to-imported"
],
"default": "imported-to-importing",
"markdownDescription": "The direction of arrows in the generated imports graph."
},
"wake.generator.imports_graph.vscode_urls": {
"type": "boolean",
"default": true,
"description": "Generate vscode:// URLs in the generated imports graph."
},
"wake.generator.inheritance_graph_full.direction": {
"type": "string",
"enum": [
"TB",
"BT",
"LR",
"RL"
],
"default": "BT",
"markdownDescription": "The direction of the inheritance graph generated for the whole project (see [Graphviz docs](https://graphviz.org/docs/attrs/rankdir/))."
},
"wake.generator.inheritance_graph_full.vscode_urls": {
"type": "boolean",
"default": true,
"description": "Generate vscode:// URLs in the inheritance graph generated for the whole project."
}
}
},
{
"title": "LSP",
"order": 4,
"properties": {
"wake.lsp.compilation_delay": {
"type": "number",
"default": 0,
"description": "Delay in seconds before the project is compiled after a keystroke."
},
"wake.lsp.code_lens.enable": {
"type": "boolean",
"default": true,
"description": "Enable code lens."
},
"wake.lsp.code_lens.sort_tag_priority": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"lsp-references",
"lsp-selectors",
"lsp-inheritance-graph",
"lsp-linearized-inheritance-graph"
],
"description": "Order of code lens with the same start and end position based on sort tags used in detectors/printers. Sort tags default to the printer/detector name."
},
"wake.lsp.inlay_hints.enable": {
"type": "boolean",
"default": true,
"description": "Enable inlay hints."
},
"wake.lsp.inlay_hints.sort_tag_priority": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Order of inlay hints with the same position based on sort tags used in detectors/printers. Sort tags default to the printer/detector name."
},
"wake.lsp.detectors.enable": {
"type": "boolean",
"default": true,
"description": "Enable Wake vulnerability detectors."
},
"wake.lsp.find_references.include_declarations": {
"type": "boolean",
"default": false,
"description": "Also include declarations in 'Go to references' results."
}
}
}
],
"languages": [
{
"id": "solidity",
"extensions": [
".sol"
],
"aliases": [
"Solidity",
"sol"
],
"configuration": "./language-configuration.json"
},
{
"id": "tools-for-solidity-output",
"extensions": [
".output"
],
"configuration": "./resources/log.configuration.json"
}
],
"grammars": [
{
"language": "solidity",
"scopeName": "source.solidity",
"path": "./syntaxes/solidity.tmLanguage.json"
},
{
"language": "tools-for-solidity-output",
"scopeName": "source.wake.output",
"path": "./syntaxes/log.configuration.json"
}
],
"commands": [
{
"command": "Tools-for-Solidity.wake.restart_client",
"title": "Solidity: Restart Wake LSP Client"
},
{
"command": "Tools-for-Solidity.generate.imports_graph",
"title": "Solidity: Generate Imports Graph"
},
{
"command": "Tools-for-Solidity.generate.inheritance_graph",
"title": "Solidity: Generate Inheritance Graph"
},
{
"command": "Tools-for-Solidity.foundry.import_remappings",
"title": "Solidity: Import Foundry Remappings"
},
{
"command": "Tools-for-Solidity.coverage.show",
"title": "Solidity: Show Coverage"
},
{
"command": "Tools-for-Solidity.coverage.hide",
"title": "Solidity: Hide Coverage"
},
{
"command": "Tools-for-Solidity.init.detector",
"title": "Solidity: New Detector"
},
{
"command": "Tools-for-Solidity.init.global_detector",
"title": "Solidity: New Global Detector"
},
{
"command": "Tools-for-Solidity.init.printer",
"title": "Solidity: New Printer"
},
{
"command": "Tools-for-Solidity.init.global_printer",
"title": "Solidity: New Global Printer"
},
{
"command": "Tools-for-Solidity.detections.force_rerun_detectors",
"title": "Solidity: Force Rerun Detectors",
"icon": "$(refresh)"
},
{
"command": "Tools-for-Solidity.detections.force_recompile",
"title": "Solidity: Force Recompile Project",
"icon": "$(refresh)"
},
{
"command": "Tools-for-Solidity.detections.open_docs",
"title": "Open Documentation",
"icon": "$(book)"
},
{
"command": "Tools-for-Solidity.detections.group.impact",
"title": "◯ Group by Impact"
},
{
"command": "Tools-for-Solidity.detections.group.file",
"title": "◯ Group by File"
},
{
"command": "Tools-for-Solidity.detections.group.confidence",
"title": "◯ Group by Confidence"
},
{
"command": "Tools-for-Solidity.detections.group.detector",
"title": "◯ Group by Detector"
},
{
"command": "Tools-for-Solidity.detections.group.impact_selected",
"title": "◉ Group by Impact"
},
{
"command": "Tools-for-Solidity.detections.group.file_selected",
"title": "◉ Group by File"
},
{
"command": "Tools-for-Solidity.detections.group.confidence_selected",
"title": "◉ Group by Confidence"
},
{
"command": "Tools-for-Solidity.detections.group.detector_selected",
"title": "◉ Group by Detector"
},
{
"command": "Tools-for-Solidity.detections.filter.impact.high",
"title": "◯ Impact: High"
},
{
"command": "Tools-for-Solidity.detections.filter.impact.medium",
"title": "◯ Impact: High/Medium"
},
{
"command": "Tools-for-Solidity.detections.filter.impact.low",
"title": "◯ Impact: High/Medium/Low"
},
{
"command": "Tools-for-Solidity.detections.filter.impact.warning",
"title": "◯ Impact: High/Medium/Low/Warning"
},
{
"command": "Tools-for-Solidity.detections.filter.impact.info",
"title": "◯ Impact: All"
},
{
"command": "Tools-for-Solidity.detections.filter.impact.high_selected",
"title": "◉ Impact: High"
},
{
"command": "Tools-for-Solidity.detections.filter.impact.medium_selected",
"title": "◉ Impact: High/Medium"
},
{
"command": "Tools-for-Solidity.detections.filter.impact.low_selected",
"title": "◉ Impact: High/Medium/Low"
},
{
"command": "Tools-for-Solidity.detections.filter.impact.warning_selected",
"title": "◉ Impact: High/Medium/Low/Warning"
},
{
"command": "Tools-for-Solidity.detections.filter.impact.info_selected",
"title": "◉ Impact: All"
},
{
"command": "Tools-for-Solidity.detections.filter.confidence.high",
"title": "◯ Confidence: High"
},
{
"command": "Tools-for-Solidity.detections.filter.confidence.medium",
"title": "◯ Confidence: High/Medium"
},
{
"command": "Tools-for-Solidity.detections.filter.confidence.low",
"title": "◯ Confidence: All"
},
{
"command": "Tools-for-Solidity.detections.filter.confidence.high_selected",
"title": "◉ Confidence: High"
},
{
"command": "Tools-for-Solidity.detections.filter.confidence.medium_selected",
"title": "◉ Confidence: High/Medium"
},
{
"command": "Tools-for-Solidity.detections.filter.confidence.low_selected",
"title": "◉ Confidence: All"
},
{
"command": "Tools-for-Solidity.sake.compile",
"title": "Solidity Deploy & Interact: Compile"
},
{
"command": "Tools-for-Solidity.sake.show_history",
"title": "Solidity Deploy & Interact: Show Transaction History",
"icon": "$(history)"
},
{
"command": "Tools-for-Solidity.config.enable-prerelease",
"title": "Solidity: Enable Wake Prerelease",
"enablement": "!Tools-for-Solidity.Wake.prerelease"
},
{
"command": "Tools-for-Solidity.config.disable-prerelease",
"title": "Solidity: Disable Wake Prerelease",
"enablement": "Tools-for-Solidity.Wake.prerelease"
},
{
"command": "Tools-for-Solidity.sake.copyFromResults",
"title": "Solidity: Copy From Results",
"icon": "$(copy)"
},
{
"command": "Tools-for-Solidity.sake.save-state",
"title": "Solidity: Save Chains State",
"icon": "$(save)"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "tools-for-solidity",
"title": "Solidity: Errors & Detections",
"icon": "resources/icons/activity_bar_solidity.png"
},
{
"id": "sake",
"title": "Solidity: Deploy & Interact",
"icon": "resources/icons/activity_bar_deploy_interact.png"
}
],
"panel": [
{
"id": "sake-output",
"title": "Solidity: Transactions",
"icon": ""
}
]
},
"views": {
"tools-for-solidity": [
{
"id": "wake-detections",
"name": "Wake Detections"
},
{
"id": "solc-detections",
"name": "Compiler Errors"
}
],
"sake": [
{
"type": "webview",
"id": "sake",
"name": "Deploy & Interact"
}
],
"sake-output": [
{
"id": "sake-output",
"name": "Transactions"
}
]
},
"menus": {
"view/title": [
{
"command": "Tools-for-Solidity.detections.force_rerun_detectors",
"when": "view == wake-detections",
"group": "navigation@3"
},
{
"submenu": "tools-for-solidity.detections.group",
"when": "view == wake-detections",
"group": "navigation@1"
},
{
"submenu": "tools-for-solidity.detections.filter",
"when": "view == wake-detections",
"group": "navigation@2"
},
{
"command": "Tools-for-Solidity.detections.force_recompile",
"when": "view == solc-detections",
"group": "navigation@3"
},
{
"command": "Tools-for-Solidity.sake.show_history",
"when": "view == sake-output",
"group": "navigation"
},
{
"command": "Tools-for-Solidity.sake.save-state",
"when": "view == sake",
"group": "navigation"
}
],
"view/item/context": [
{
"command": "Tools-for-Solidity.detections.open_docs",
"when": "view == wake-detections && viewItem == DETECTOR",
"group": "inline"
},
{
"command": "Tools-for-Solidity.sake.copyFromResults",
"when": "view == sake-output && viewItem == copyable",
"group": "inline"
}
],
"tools-for-solidity.detections.filter": [
{
"command": "Tools-for-Solidity.detections.filter.impact.high",
"group": "1_impact@2",
"when": "detections.filterImpact != 'HIGH'"
},
{
"command": "Tools-for-Solidity.detections.filter.impact.medium",
"group": "1_impact@3",
"when": "detections.filterImpact != 'MEDIUM'"
},
{
"command": "Tools-for-Solidity.detections.filter.impact.low",
"group": "1_impact@4",
"when": "detections.filterImpact != 'LOW'"
},
{
"command": "Tools-for-Solidity.detections.filter.impact.warning",
"group": "1_impact@5",
"when": "detections.filterImpact != 'WARNING'"
},
{
"command": "Tools-for-Solidity.detections.filter.impact.info",
"group": "1_impact@1",
"when": "detections.filterImpact != 'INFO'"
},
{
"command": "Tools-for-Solidity.detections.filter.impact.high_selected",
"group": "1_impact@2",
"when": "detections.filterImpact == 'HIGH'"
},
{
"command": "Tools-for-Solidity.detections.filter.impact.medium_selected",
"group": "1_impact@3",
"when": "detections.filterImpact == 'MEDIUM'"
},
{
"command": "Tools-for-Solidity.detections.filter.impact.low_selected",
"group": "1_impact@4",
"when": "detections.filterImpact == 'LOW'"
},
{
"command": "Tools-for-Solidity.detections.filter.impact.warning_selected",
"group": "1_impact@5",
"when": "detections.filterImpact == 'WARNING'"
},
{
"command": "Tools-for-Solidity.detections.filter.impact.info_selected",
"group": "1_impact@1",
"when": "detections.filterImpact == 'INFO'"
},
{
"command": "Tools-for-Solidity.detections.filter.confidence.high",
"group": "2_confidence@2",
"when": "detections.filterConfidence != 'HIGH'"
},
{
"command": "Tools-for-Solidity.detections.filter.confidence.medium",
"group": "2_confidence@3",
"when": "detections.filterConfidence != 'MEDIUM'"
},
{
"command": "Tools-for-Solidity.detections.filter.confidence.low",
"group": "2_confidence@1",
"when": "detections.filterConfidence != 'LOW'"
},
{
"command": "Tools-for-Solidity.detections.filter.confidence.high_selected",
"group": "2_confidence@2",
"when": "detections.filterConfidence == 'HIGH'"
},
{
"command": "Tools-for-Solidity.detections.filter.confidence.medium_selected",
"group": "2_confidence@3",
"when": "detections.filterConfidence == 'MEDIUM'"
},
{
"command": "Tools-for-Solidity.detections.filter.confidence.low_selected",
"group": "2_confidence@1",
"when": "detections.filterConfidence == 'LOW'"
}
],
"tools-for-solidity.detections.group": [
{
"command": "Tools-for-Solidity.detections.group.file",
"group": "group@1",
"when": "detections.group != 'FILE'"
},
{
"command": "Tools-for-Solidity.detections.group.impact",
"group": "group@2",
"when": "detections.group != 'IMPACT'"
},
{
"command": "Tools-for-Solidity.detections.group.confidence",
"group": "group@3",
"when": "detections.group != 'CONFIDENCE'"
},
{
"command": "Tools-for-Solidity.detections.group.detector",
"group": "group@4",
"when": "detections.group != 'DETECTOR'"
},
{
"command": "Tools-for-Solidity.detections.group.file_selected",
"group": "group@1",
"when": "detections.group == 'FILE'"
},
{
"command": "Tools-for-Solidity.detections.group.impact_selected",
"group": "group@2",
"when": "detections.group == 'IMPACT'"
},
{
"command": "Tools-for-Solidity.detections.group.confidence_selected",
"group": "group@3",
"when": "detections.group == 'CONFIDENCE'"
},
{
"command": "Tools-for-Solidity.detections.group.detector_selected",
"group": "group@4",
"when": "detections.group == 'DETECTOR'"
}
],
"commandPalette": [
{
"command": "Tools-for-Solidity.detections.group.file",
"when": "false"
},
{
"command": "Tools-for-Solidity.detections.group.impact",
"when": "false"
},
{
"command": "Tools-for-Solidity.detections.group.confidence",
"when": "false"
},
{
"command": "Tools-for-Solidity.detections.group.detector",
"when": "false"
},
{
"command": "Tools-for-Solidity.detections.group.file_selected",
"when": "false"
},
{
"command": "Tools-for-Solidity.detections.group.impact_selected",
"when": "false"
},
{
"command": "Tools-for-Solidity.detections.group.confidence_selected",
"when": "false"
},
{
"command": "Tools-for-Solidity.detections.group.detector_selected",
"when": "false"
},
{
"command": "Tools-for-Solidity.detections.filter.impact.high",
"when": "false"
},
{
"command": "Tools-for-Solidity.detections.filter.impact.medium",
"when": "false"
},
{
"command": "Tools-for-Solidity.detections.filter.impact.low",
"when": "false"
},
{
"command": "Tools-for-Solidity.detections.filter.impact.warning",
"when": "false"
},
{
"command": "Tools-for-Solidity.detections.filter.impact.info",
"when": "false"
},
{
"command": "Tools-for-Solidity.detections.filter.impact.high_selected",
"when": "false"
},
{
"command": "Tools-for-Solidity.detections.filter.impact.medium_selected",
"when": "false"
},
{
"command": "Tools-for-Solidity.detections.filter.impact.low_selected",
"when": "false"
},
{
"command": "Tools-for-Solidity.detections.filter.impact.warning_selected",
"when": "false"
},
{
"command": "Tools-for-Solidity.detections.filter.impact.info_selected",
"when": "false"
},
{
"command": "Tools-for-Solidity.detections.filter.confidence.high",
"when": "false"
},
{
"command": "Tools-for-Solidity.detections.filter.confidence.medium",
"when": "false"
},
{
"command": "Tools-for-Solidity.detections.filter.confidence.low",
"when": "false"
},
{
"command": "Tools-for-Solidity.detections.filter.confidence.high_selected",
"when": "false"
},
{
"command": "Tools-for-Solidity.detections.filter.confidence.medium_selected",
"when": "false"
},
{
"command": "Tools-for-Solidity.detections.filter.confidence.low_selected",
"when": "false"
},
{
"command": "Tools-for-Solidity.sake.copyFromResults",
"when": "false"
}
]
},
"submenus": [
{
"id": "tools-for-solidity.detections.filter",
"label": "Filter",
"icon": "$(filter)"
},
{
"id": "tools-for-solidity.detections.group",
"label": "Group by",
"icon": "$(list-tree)"
}
],
"walkthroughs": [
{
"id": "tfs-walkthrough",
"title": "Getting started with Solidity",
"description": "Discover powerful features of Solidity and learn how to enhance your development experience.",
"steps": [
{
"id": "select-wake-installation",
"title": "Setup: Select Wake installation method",
"description": "Solidity needs to install [Wake](https://getwake.io/) to run. By default, Wake is installed using conda for best compatibility. You can change the installation method below.\n**Recommended**: Only change the installation method if necessary.\n[Change Installation Method](command:Tools-for-Solidity.select-installation-method)",
"media": {
"markdown": "./resources/walkthrough/blank.md"
}
},
{
"id": "rosetta-macos-native",
"title": "Setup: Enable Rosetta",
"description": "It looks like you are running on macOS Native. To ensure full compatibility with our extension, please make sure you have Rosetta installed.\n**Tip**: To install Rosetta, you can run [this command](command:Tools-for-Solidity.send-rosetta-command).",
"media": {
"markdown": "./resources/walkthrough/test.md"
},
"when": "isMacNative"
},
{
"id": "linux-arm",
"title": "Setup: Linux on ARM64",
"description": "You appear to be using Linux. In case you are running on ARM64, please note that this extension doesn't currently support this architecture.",
"media": {
"markdown": "./resources/walkthrough/blank.md"
},
"when": "isLinux"
},
{
"id": "detectors",
"title": "Catch vulnerabilities with Detectors",
"description": "See vulnerabilities and compiler warnings/errors of your code in real-time inside your sidebar.\n[See Detections](command:Tools-for-Solidity.open-detections-ui)",
"media": {
"image": "./resources/walkthrough/detectors.png",
"altText": "Detectors"
},
"completionEvents": [
"onCommand:Tools-for-Solidity.open-detections-ui"
]
},
{
"id": "sake",
"title": "Deploy & Interact with Smart Contracts",
"description": "Deploy & Interact view allows you to deploy, call, and test your contracts directly from VS Code.\n[Open Deploy and Interact](command:Tools-for-Solidity.open-sake-ui)",
"media": {
"image": "./resources/walkthrough/sake.png",
"altText": "Deploy & Interact"
},
"completionEvents": [
"onCommand:Tools-for-Solidity.open-sake-ui"
]
},
{
"id": "language-server",
"title": "Speed up your workflow with LSP features",
"description": "Solidity ships with a powerful language server which adds support for **CodeLens**, **Go to Definition**, **Find References**, and more.",
"media": {
"image": "./resources/walkthrough/lsp.png",
"altText": "LSP Server"
}
},
{
"id": "graphs",
"title": "Visualize relations in code",
"description": "Different graph types can be generated to better visualize the relations in the code.\n**Tip**: You can view graphs via hints displayed over contracts and functions.",