-
Notifications
You must be signed in to change notification settings - Fork 5
/
package.json
906 lines (906 loc) · 27.2 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
{
"publisher": "theNestruo",
"name": "z80-asm-meter",
"version": "5.6.5",
"engines": {
"vscode": "^1.95.0"
},
"displayName": "Z80 Assembly meter",
"description": "Z80 Assembly clock cycles and bytecode size meter",
"icon": "images/icon.128.png",
"galleryBanner": {
"color": "#191919",
"theme": "dark"
},
"categories": [
"Programming Languages"
],
"keywords": [
"asm",
"assembler",
"assembly",
"Zilog",
"Z80",
"Z80A",
"Z80N",
"Amstrad CPC",
"CPC",
"MSX",
"ZX Spectrum",
"ZX Spectrum Next"
],
"license": "LGPL-3.0",
"homepage": "https://github.com/theNestruo/z80-asm-meter-vscode",
"bugs": {
"url": "https://github.com/theNestruo/z80-asm-meter-vscode/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/theNestruo/z80-asm-meter-vscode.git"
},
"author": {
"email": "[email protected]",
"name": "Néstor Sancho",
"url": "https://thenestruo.github.io/"
},
"activationEvents": [
"onLanguage:asm-collection",
"onLanguage:pasmo",
"onLanguage:z80",
"onLanguage:z80-asm",
"onLanguage:z80-asm-meter",
"onLanguage:z80-macroasm",
"onLanguage:zeus-asm",
"workspaceContains:**/*.{asm,ASM,c,C,inc,INC,s,S,z80,Z80}"
],
"contributes": {
"languages": [
{
"id": "z80-asm-meter",
"aliases": [
"Z80 Assembly"
]
}
],
"commands": [
{
"title": "Z80 Assembly meter: copy to clipboard",
"command": "z80-asm-meter.copyToClipboard"
}
],
"configuration": [
{
"order": 10,
"properties": {
"z80-asm-meter.languageIds": {
"order": 10,
"type": [
"array",
"null"
],
"default": [
"asm-collection",
"pasmo",
"z80",
"z80-asm",
"z80-macroasm",
"zeus-asm"
],
"description": "Additional language IDs for which the extension is enabled (such as \"c\" for in-lined assembly)"
},
"z80-asm-meter.platform": {
"order": 20,
"type": "string",
"enum": [
"z80",
"msx",
"pc8000",
"cpc",
"z80n"
],
"default": "z80",
"description": "Controls the instruction set and the timing information",
"enumDescriptions": [
"Default Z80 instruction set and default timing information",
"MSX: default Z80 instruction set and Z80+M1 timing information (MSX standard)",
"NEC PC-8000 series: default Z80 instruction set and both default and Z80+M1 timing information",
"Amstrad CPC: default Z80 instruction set and timing measured in number of NOPs",
"ZX Spectrum Next Extended Z80 instruction set and default timing information"
]
},
"z80-asm-meter.syntax": {
"order": 30,
"type": "string",
"enum": [
"default",
"glass",
"pasmo",
"sjasm",
"sjasmplus",
"tniasm"
],
"default": "default",
"description": "Adjusts the main syntax of the assembler",
"enumDescriptions": [
"Matches most assemblers",
"Matches Glass Z80 assembler syntax",
"Matches Pasmo assembler syntax",
"Matches SjASM assembler syntax",
"Matches SjASMPlus assembler syntax",
"Matches tniASM assembler syntax"
]
},
"z80-asm-meter.expandSelectionToLine": {
"order": 40,
"type": "boolean",
"default": true,
"description": "When enabled, expands the selection to cover entire lines"
}
}
},
{
"title": "Status bar",
"order": 20,
"properties": {
"z80-asm-meter.statusBar.alignment": {
"order": 10,
"type": "string",
"enum": [
"leftmost",
"left",
"right",
"rightmost"
],
"default": "right",
"description": "Controls the status bar item position",
"enumDescriptions": [
"Leftmost position of the status bar",
"Left side of the status bar",
"Right side of the status bar",
"Rightmost position of the status bar"
]
},
"z80-asm-meter.statusBar.showInstruction": {
"order": 20,
"type": "boolean",
"default": false,
"description": "Shows the processed instruction in the status bar"
},
"z80-asm-meter.statusBar.totalTimings": {
"order": 30,
"type": "string",
"enum": [
"all",
"combineAll",
"smart",
"combineSmart",
"best",
"default"
],
"default": "smart",
"description": "Shows total timing calculations in the status bar",
"enumDescriptions": [
"Shows all the total timing calculations that apply to the selection",
"Shows all the total timing calculations combined to reduce the size of the status bar item",
"Shows total timing calculations that are relevant to the selection",
"Shows total timing calculations that are relevant to the selection combined to reduce the size of the status bar item",
"Shows the total timing calculation that best fits the selection",
"Does not show any alternative total timing calculation"
]
},
"z80-asm-meter.statusBar.totalTimingsOrder": {
"order": 35,
"type": "string",
"enum": [
"retFlowJumpCall",
"flowRetJumpCall",
"retJumpCallFlow"
],
"default": "retFlowJumpCall",
"description": "Determines the order of the total timing calculations in the status bar when more than one total timing calculation is visible",
"enumDescriptions": [
"At exit point (returns) first. Execution flow next. Other exit points (jumps and calls) last",
"Execution flow first. Any exit points (returns, jumps and calls) last",
"Any exit point (returns, jumps and calls) first, execution flow last"
]
},
"z80-asm-meter.statusBar.copyTimingsAsHints": {
"order": 40,
"type": "boolean",
"default": false,
"description": "Enable copying timings as timing hints, instead of human readable format"
},
"z80-asm-meter.statusBar.sizeNumericFormat": {
"order": 43,
"type": "string",
"enum": [
"decimal",
"hexadecimal",
"both"
],
"default": "decimal",
"description": "The numerical format of the size in bytes in the status bar",
"enumDescriptions": [
"Size in bytes as a decimal number",
"Size in bytes as an hexadecimal number",
"Size in bytes as both a decimal and an hexadecimal number"
]
},
"z80-asm-meter.statusBar.sizeHexadecimalFormat": {
"order": 46,
"type": "string",
"enum": [
"hash",
"motorola",
"intel",
"intelUppercase",
"cStyle",
"uppercaseHash",
"uppercaseMotorola",
"uppercaseIntel",
"uppercaseIntelUppercase",
"uppercaseCStyle"
],
"default": "motorola",
"description": "The hexadecimal format for the hexadecimal size in bytes in the status bar",
"enumDescriptions": [
"Hexadecimal size in bytes in hash format (#1fff)",
"Hexadecimal size in bytes in Motorola format ($1fff)",
"Hexadecimal size in bytes in Intel format (1fffhh)",
"Hexadecimal size in bytes in Intel format, uppercase suffix (1fff)",
"Hexadecimal size in bytes in C-style format (0x1fff)",
"Hexadecimal size in bytes in uppercase, hash format (#B45D)",
"Hexadecimal size in bytes in uppercase, Motorola format ($B45D)",
"Hexadecimal size in bytes in uppercase, Intel format, lowercase suffix (0B45Dh)",
"Hexadecimal size in bytes in uppercase, Intel format (0B45DH)",
"Hexadecimal size in bytes in uppercase, C-style format (0xB45D)"
]
},
"z80-asm-meter.statusBar.sizeSuffix": {
"order": 50,
"type": "string",
"default": " byte| bytes",
"description": "The suffix for the size in bytes in the status bar",
"examples": [
" byte| bytes",
" B"
]
},
"z80-asm-meter.statusBar.showBytes": {
"order": 60,
"type": "boolean",
"default": false,
"description": "Shows the bytes (opcode) in the status bar"
},
"z80-asm-meter.statusBar.debounce": {
"order": 70,
"type": "integer",
"default": 100,
"description": "Milliseconds to prevent metering from being called too frequently when the selection changes"
},
"z80-asm-meter.statusBar.cacheSize": {
"order": 75,
"type": "integer",
"default": 150,
"description": "Size of the cache, in selections, used to minimize metering calculations when navigating through previously metered code"
},
"z80-asm-meter.statusBar.instructionIcon": {
"order": 80,
"type": "string",
"minLength": 1,
"default": "$(code)",
"description": "The icon to identify the instruction in the status bar",
"examples": [
"$(code)",
"$(comment)",
"$(file-code)",
"$(file-text)",
"$(report)",
"$(selection)",
"$(symbol-keyword)",
"$(symbol-snippet)"
]
},
"z80-asm-meter.statusBar.timingsIcon": {
"order": 80,
"type": "string",
"minLength": 1,
"default": "$(watch)",
"description": "The icon to identify the timings in the status bar",
"examples": [
"$(clock)",
"$(dashboard)",
"$(watch)",
"$(zap)",
"Ts "
]
},
"z80-asm-meter.statusBar.sizeIcon": {
"order": 80,
"type": "string",
"minLength": 1,
"default": "$(file-binary)",
"description": "The icon to identify the size and the bytes in the status bar",
"examples": [
"$(archive)",
"$(database)",
"$(file-binary)",
"$(package)",
"$(pie-chart)",
"$(preview)",
"$(symbol-misc)",
", Sz "
]
}
}
},
{
"title": "Assembler syntax",
"order": 30,
"properties": {
"z80-asm-meter.syntaxFeature.labelColonOptional": {
"order": 10,
"type": "boolean",
"default": false,
"description": "When enabled, the label trailing colon is optional and the labels must not be indented. When disabled, the labels must be followed by a colon (:) and can be indented"
},
"z80-asm-meter.syntaxFeature.repeat": {
"order": 20,
"type": "string",
"enum": [
"disabled",
"brackets",
"dot"
],
"default": "disabled",
"description": "Enables support for parsing single instruction repetitions",
"enumDescriptions": [
"Disables single instruction reptitions",
"The single instruction reptitions are specified within square brackets ([ and ]) before the instruction",
"The single instruction reptitions are specified after a dot (.) before the instruction"
]
},
"z80-asm-meter.syntaxFeature.lineSeparator": {
"order": 30,
"type": "string",
"enum": [
"disabled",
"colon",
"pipe"
],
"default": "disabled",
"description": "Adjusts the line separator to match the syntax of the assembler",
"enumDescriptions": [
"Does not allow multiple instructions on a single line",
"Use colon (:) to have more than one instruction on a line",
"Use pipe (|) to have more than one instruction on a line. This behaviour matches some assemblers such as tniASM"
]
},
"z80-asm-meter.syntaxFeature.fakeInstructions": {
"order": 40,
"type": "boolean",
"default": false,
"description": "Enables SjASMPlus fake instructions support"
},
"z80-asm-meter.syntaxFeature.registerListInstructions": {
"order": 42,
"type": "boolean",
"default": false,
"description": "Enables SjASMPlus register list instructions support"
},
"z80-asm-meter.syntaxFeature.negativeConditions": {
"order": 44,
"type": "boolean",
"default": false,
"description": "Enables Glass negative conditions support"
},
"z80-asm-meter.syntaxFeature.dupEdup": {
"order": 46,
"type": "boolean",
"default": false,
"description": "Enables DUP/EDUP repetition blocks"
},
"z80-asm-meter.syntaxFeature.reptEndr": {
"order": 48,
"type": "boolean",
"default": false,
"description": "Enables REPT/ENDR repetition blocks"
},
"z80-asm-meter.syntaxFeature.reptEndm": {
"order": 50,
"type": "boolean",
"default": false,
"description": "Enables REPT/ENDM repetition blocks"
}
}
},
{
"title": "Parser",
"order": 40,
"properties": {
"z80-asm-meter.parser.directives.defsAsInstructions": {
"order": 10,
"type": "boolean",
"default": false,
"description": "When enabled, tries to parse DEFS directive bytes as single byte instructions"
},
"z80-asm-meter.parser.instructionsCacheSize": {
"order": 20,
"type": "integer",
"default": 250,
"description": "Size of the internal cache, in instructions, to lighten the metering calculations; particularly when metering large source code blocks"
}
}
},
{
"title": "Total timing calculation",
"order": 50,
"properties": {
"z80-asm-meter.timing.executionFlow.enabled": {
"order": 110,
"type": "boolean",
"default": true,
"mark": "Enables execution flow total timing calculation"
},
"z80-asm-meter.timing.executionFlow.threshold": {
"order": 120,
"type": "number",
"default": 2,
"description": "Minimum number of instructions to be selected for the calculation of execution flow total timing"
},
"z80-asm-meter.timing.executionFlow.requireConditional": {
"order": 130,
"type": "boolean",
"default": true,
"description": "Requires at least one conditional instruction to enable execution flow total timing calculation"
},
"z80-asm-meter.timing.executionFlow.stopOnUnconditionalJump": {
"order": 140,
"type": "boolean",
"default": true,
"description": "Disables execution flow total timing calculation if an unconditional JP, JR or RET instruction is found"
},
"z80-asm-meter.timing.executionFlow.icon": {
"order": 150,
"type": "string",
"minLength": 1,
"default": "$(debug-step-over)",
"description": "Execution flow total timing calculation icon in the status bar",
"examples": [
"$(arrow-down)",
"$(chevron-down)",
"$(debug-step-into)",
"$(debug-step-over)",
"$(kebab-horizontal)",
"$(kebab-vertical)",
"$(run-below)",
"$(triangle-down)"
]
},
"z80-asm-meter.timing.atExit.retEnabled": {
"order": 210,
"type": "boolean",
"default": true,
"description": "Enables total timing calculation of the execution flow to the selected exit point when the selection ends with a RET, RETI or RETN instruction"
},
"z80-asm-meter.timing.atExit.jumpEnabled": {
"order": 211,
"type": "boolean",
"default": true,
"description": "Enables total timing calculation of the execution flow to the selected exit point when the selection ends with a DJNZ, JP or JR instruction"
},
"z80-asm-meter.timing.atExit.callEnabled": {
"order": 212,
"type": "boolean",
"default": false,
"description": "Enables total timing calculation of the execution flow to the selected exit point when the selection ends with a CALL or RST instruction"
},
"z80-asm-meter.timing.atExit.threshold": {
"order": 220,
"type": "number",
"default": 2,
"description": "Minimum number of instructions to be selected for the calculation of total timing calculation of the execution flow to the selected exit point"
},
"z80-asm-meter.timing.atExit.requireConditional": {
"order": 230,
"type": "boolean",
"default": true,
"description": "Requires at least one conditional instruction to enable total timing calculation of the execution flow to the selected exit point"
},
"z80-asm-meter.timing.atExit.stopOnUnconditionalJump": {
"order": 240,
"type": "boolean",
"default": true,
"description": "Disables total timing calculation of the execution flow to the selected exit point if an unconditional JP, JR or RET instruction is found"
},
"z80-asm-meter.timing.atExit.retIcon": {
"order": 250,
"type": "string",
"minLength": 1,
"default": "$(debug-step-back)",
"description": "Total timing calculation of the execution flow to the selected exit point (RET, RETI or RETN instruction) icon in the status bar",
"examples": [
"$(arrow-left)",
"$(arrow-up)",
"$(chevron-left)",
"$(chevron-up)",
"$(debug-restart)",
"$(debug-step-back)",
"$(debug-step-into)",
"$(debug-step-out)",
"$(discard)",
"$(newline)",
"$(reply)",
"$(triangle-left)",
"$(triangle-up)"
]
},
"z80-asm-meter.timing.atExit.jumpIcon": {
"order": 251,
"type": "string",
"minLength": 1,
"default": "$(debug-step-out)",
"description": "Total timing calculation of the execution flow to the selected exit point (DJNZ, JP or JR instruction) icon in the status bar",
"examples": [
"$(arrow-right)",
"$(chevron-right)",
"$(debug-step-into)",
"$(debug-step-out)",
"$(indent)",
"$(redo)",
"$(triangle-right)"
]
},
"z80-asm-meter.timing.atExit.callIcon": {
"order": 252,
"type": "string",
"minLength": 1,
"default": "$(debug-step-into)",
"description": "Total timing calculation of the execution flow to the selected exit point (CALL or RST instruction) icon in the status bar",
"examples": [
"$(arrow-right)",
"$(chevron-right)",
"$(debug-step-into)",
"$(debug-step-out)",
"$(indent)",
"$(redo)",
"$(triangle-right)"
]
}
}
},
{
"title": "Timing hints",
"order": 60,
"properties": {
"z80-asm-meter.timing.hints.enabled": {
"order": 10,
"type": "string",
"enum": [
"disabled",
"subroutines",
"any",
"ignoreCommentedOut"
],
"default": "subroutines",
"description": "Enables timing hints read from the line comment",
"enumDescriptions": [
"Disables timing hints",
"Subroutine timing hint will be added to CALL, DJNZ, JP, JR, RET or RST instructions only",
"Any timing hint found, regardless the instruction. This includes empty lines",
"Any timing hint found, regardless the instruction, but trying to exclude empty lines that look like commented out source code"
]
},
"z80-asm-meter.timing.hints.regexps": {
"order": 20,
"type": [
"array",
"null"
],
"items": {
"type": "object",
"properties": {
"pattern": {
"type": "string",
"description": "The pattern of the regular expression to match against the line comment"
},
"flags": {
"type": [
"string",
"undefined"
],
"description": "The string indicating the flags of the regular expression"
},
"z80": {
"type": [
"number",
"string",
"undefined"
],
"description": "Declares or overrides Z80 default timing hint"
},
"msx": {
"type": [
"number",
"string",
"undefined"
],
"description": "Declares or overrides Z80+M1 timing hint (MSX standard)"
},
"m1": {
"type": [
"number",
"string",
"undefined"
],
"description": "Declares or overrides Z80+M1 timing hint"
},
"cpc": {
"type": [
"number",
"string",
"undefined"
],
"description": "Declares or overrides timing hint measured in number of NOPs"
},
"t": {
"type": [
"number",
"string",
"undefined"
],
"description": "Declares or overrides default timing hint"
},
"ts": {
"type": [
"number",
"string",
"undefined"
],
"description": "Declares or overrides default timing hint"
}
}
},
"default": [],
"description": "An array of regexp-based user-defined timing hints"
}
}
},
{
"title": "Macros",
"order": 70,
"properties": {
"z80-asm-meter.macros": {
"order": 10,
"type": [
"array",
"null"
],
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the macro; will be matched against the mnemonic of the source code."
},
"z80": {
"type": [
"number",
"string",
"undefined"
],
"description": "Declares or overrides Z80 default timing hint"
},
"msx": {
"type": [
"number",
"string",
"undefined"
],
"description": "Declares or overrides Z80+M1 macro timing information (MSX standard)"
},
"m1": {
"type": [
"number",
"string",
"undefined"
],
"description": "Declares or overrides Z80+M1 macro timing information"
},
"cpc": {
"type": [
"number",
"string",
"undefined"
],
"description": "Declares or overrides macro timing measured in number of NOPs"
},
"t": {
"type": [
"number",
"string",
"undefined"
],
"description": "Declares or overrides default macro timing"
},
"ts": {
"type": [
"number",
"string",
"undefined"
],
"description": "Declares or overrides default macro timing"
},
"size": {
"type": [
"number",
"string",
"undefined"
],
"description": "Declares or overrides macro byte count"
},
"instructions": {
"type": [
"array",
"undefined"
],
"description": "The macro definition, as instructions",
"items": {
"type": "string"
}
}
}
},
"default": [],
"description": "An array of user-defined macros"
}
}
},
{
"title": "Inlay hints (experimental)",
"order": 80,
"properties": {
"z80-asm-meter.inlayHints.enabled": {
"order": 10,
"type": "boolean",
"default": false,
"description": "Enables detection and metering of subroutines as inlay hints"
},
"z80-asm-meter.inlayHints.subroutines.position": {
"order": 20,
"type": "string",
"enum": [
"lineStart",
"afterLabel",
"beforeCode",
"afterCode",
"beforeComment",
"lineEnd"
],
"default": "beforeComment",
"enumDescriptions": [
"At the beginning of the line",
"After the label, or at the beginning of the line if there is no label",
"Before the actual source code",
"After the actual source code",
"Before the trailing line comments, or at the end of the line if there are no trailing comments",
"At the end of the line"
]
},
"z80-asm-meter.inlayHints.subroutines.unlabelled": {
"order": 30,
"type": "boolean",
"default": false,
"description": "Consider that unlabelled code is a subroutine"
},
"z80-asm-meter.inlayHints.subroutines.nested": {
"order": 32,
"type": "string",
"enum": [
"disabled",
"enabled",
"entryPoint"
],
"default": "entryPoint",
"description": "Consider that nested labels (lablels starting with a dot (.) or with @@) are subroutines",
"enumDescriptions": [
"Ignores any nested label",
"Considers that any nested label is a new subroutine",
"Considers that a nested label is a subroutine if it is a separate entry points"
]
},
"z80-asm-meter.inlayHints.subroutines.fallthrough": {
"order": 34,
"type": "boolean",
"default": true,
"description": "Consider that labels the code falls through are subroutines"
},
"z80-asm-meter.inlayHints.exitPoint.position": {
"order": 40,
"type": "string",
"enum": [
"lineStart",
"afterLabel",
"beforeCode",
"afterCode",
"beforeComment",
"lineEnd"
],
"default": "beforeComment",
"enumDescriptions": [
"At the beginning of the line",
"After the label, or at the beginning of the line if there is no label",
"Before the actual source code",
"After the actual source code",
"Before the trailing line comments, or at the end of the line if there are no trailing comments",
"At the end of the line"
]
},
"z80-asm-meter.inlayHints.exitPoint.ret": {
"order": 50,
"type": "boolean",
"default": true,
"description": "Considers that conditional RET instructions are subroutine exit points"
},
"z80-asm-meter.inlayHints.exitPoint.jp": {
"order": 52,
"type": "boolean",
"default": true,
"description": "Considers that conditional JP instructions are subroutine exit points"
},
"z80-asm-meter.inlayHints.exitPoint.jr": {
"order": 54,
"type": "boolean",
"default": false,
"description": "Considers that conditional JR instructions are subroutine exit points"
},
"z80-asm-meter.inlayHints.exitPoint.djnz": {
"order": 56,
"type": "boolean",
"default": false,
"description": "Considers that DJNZ instructions are subroutine exit points"
},
"z80-asm-meter.inlayHints.exitPoint.label": {
"order": 58,
"type": "string",
"enum": [
"first",
"closest"
],
"default": "first",
"description": "When fallthrough labels are considered subroutines, controls which subroutine is considered at exit points",
"enumDescriptions": [
"The first label found; the first (outermost) subroutine in a chain of fallthrough subroutines",
"The last label found; the last (innermost) subroutine in a chain of fallthrough subroutines. That is, the subroutine whose label is the closest one to the exit point"
]
}
}
}
]
},
"main": "./dist/extension.js",
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "npm run check-types && npm run lint && node esbuild.js",
"watch": "npm-run-all -p watch:*",
"watch:esbuild": "node esbuild.js --watch",
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
"package": "npm run check-types && npm run lint && node esbuild.js --production",
"check-types": "tsc --noEmit",
"lint": "eslint \"src/**/*.ts\""
},
"devDependencies": {
"@types/mocha": "^10.0.10",
"@types/node": "22.x",
"@types/vscode": "^1.95.0",
"@typescript-eslint/eslint-plugin": "^8.15.0",
"@typescript-eslint/parser": "^8.15.0",
"esbuild": "^0.24.0",
"eslint": "^8.57.0",
"npm-run-all": "^4.1.5",
"typescript": "^5.7.2"
},
"dependencies": {
"hashlru": "^2.3.0"
}
}