forked from phindle/error-lens
-
Notifications
You must be signed in to change notification settings - Fork 32
/
package.json
1269 lines (1269 loc) · 39.6 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": "errorlens",
"displayName": "Error Lens",
"description": "Improve highlighting of errors, warnings and other language diagnostics.",
"version": "3.20.0",
"publisher": "usernamehw",
"license": "MIT",
"engines": {
"vscode": "^1.85.0",
"npm": ">=7.0.0"
},
"extensionKind": [
"ui",
"workspace"
],
"categories": [
"Other"
],
"qna": false,
"keywords": [
"highlight",
"problem",
"problems",
"error",
"warning",
"inline",
"message",
"diagnostic",
"status bar",
"gutter"
],
"icon": "img/icon.png",
"repository": {
"type": "git",
"url": "https://github.com/usernamehw/vscode-error-lens"
},
"activationEvents": [
"onStartupFinished"
],
"main": "./dist/extension.js",
"browser": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "errorLens.toggle",
"title": "Toggle (Enable/Disable) Everything",
"description": "Toggle (Enable/Disable) Everything (toggle global setting `\"errorLens.enabled\"`)",
"category": "Error Lens"
},
{
"command": "errorLens.toggleError",
"title": "Toggle Errors",
"description": "Enable/Disable Errors in `\"errorLens.enabledDiagnosticLevels\"` setting.",
"category": "Error Lens"
},
{
"command": "errorLens.toggleWarning",
"title": "Toggle Warnings",
"description": "Enable/Disable Warnings in `\"errorLens.enabledDiagnosticLevels\"` setting.",
"category": "Error Lens"
},
{
"command": "errorLens.toggleInfo",
"title": "Toggle Info",
"description": "Enable/Disable Info in `\"errorLens.enabledDiagnosticLevels\"` setting.",
"category": "Error Lens"
},
{
"command": "errorLens.toggleHint",
"title": "Toggle Hint",
"description": "Enable/Disable Hint in `\"errorLens.enabledDiagnosticLevels\"` setting.",
"category": "Error Lens"
},
{
"command": "errorLens.toggleInlineMessage",
"title": "Toggle Inline Message",
"description": "Toggle global setting `\"errorLens.messageEnabled\"`.",
"category": "Error Lens"
},
{
"command": "errorLens.searchForProblem",
"title": "Search for problem",
"description": "Open problem in default browser (controlled by `errorLens.searchForProblemQuery` setting).",
"category": "Error Lens"
},
{
"command": "errorLens.selectProblem",
"title": "Select Problem",
"description": "Set editor selection to the problem range (controlled by `errorLens.selectProblemType` setting).",
"category": "Error Lens"
},
{
"command": "errorlens.toggleWorkspace",
"title": "Toggle Workspace in Disabled List",
"description": "Exclude/Include current workspace by fs path.",
"category": "Error Lens"
},
{
"command": "errorLens.disableLine",
"title": "Disable line",
"description": "Add a comment to disable line for linter rule. Comment format is controlled by `\"errorLens.disableLineComments\"` setting.",
"category": "Error Lens"
},
{
"command": "errorLens.findLinterRuleDefinition",
"title": "Find Linter Rule Definition",
"description": "Search in local linter files (like `.eslintrc.json`) for the rule definition. Target files are controlled by \"errorLens.lintFilePaths\" setting.",
"category": "Error Lens"
},
{
"command": "errorLens.copyProblemMessage",
"title": "Copy Problem Message",
"description": "Copy problem message to the clipboard (at the active cursor).",
"category": "Error Lens"
},
{
"command": "errorLens.copyProblemCode",
"title": "Copy Problem Code",
"description": "Copy problem code to the clipboard (at the active cursor).",
"category": "Error Lens"
}
],
"configuration": {
"properties": {
"errorLens.enabled": {
"type": "boolean",
"default": true,
"description": "Controls all decorations and features (except commands)."
},
"errorLens.respectUpstreamEnabled": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"default": true
},
"inlineMessage": {
"type": "boolean",
"default": true
},
"gutter": {
"type": "boolean",
"default": true
},
"statusBar": {
"type": "boolean",
"default": false
}
},
"default": {
"enabled": true,
"inlineMessage": true,
"gutter": true,
"statusBar": false
},
"markdownDescription": "When enabled - extension will take into account global VSCode setting `#problems.visibility#`. ([1.85.0 changelog](https://code.visualstudio.com/updates/v1_85#_hide-problem-decorations)).",
"additionalProperties": false
},
"errorLens.enabledInMergeConflict": {
"type": "boolean",
"default": true,
"markdownDescription": "Controls if decorations are shown if the editor has git merge conflict indicators `<<<<<<<` or `=======` or `>>>>>>>`."
},
"errorLens.fontFamily": {
"type": "string",
"default": "",
"description": "Font family of inline message."
},
"errorLens.fontWeight": {
"type": "string",
"enum": [
"100",
"200",
"300",
"400",
"normal",
"500",
"600",
"700",
"bold",
"800",
"900"
],
"default": "normal",
"markdownDescription": "Font weight of inline message. `\"normal\"` is alias for 400, `\"bold\"` is alias for 700)."
},
"errorLens.fontStyleItalic": {
"type": "boolean",
"default": false,
"description": "When enabled - shows inline message in italic font style."
},
"errorLens.fontSize": {
"type": "string",
"default": "",
"markdownDescription": "Font size of inline message ([CSS units](https://developer.mozilla.org/en-US/docs/Web/CSS/length))."
},
"errorLens.margin": {
"type": "string",
"default": "4ch",
"markdownDescription": "Distance between the last word on the line and the start of inline message ([CSS units](https://developer.mozilla.org/en-US/docs/Web/CSS/length))."
},
"errorLens.alignMessage": {
"type": "object",
"properties": {
"start": {
"type": "integer",
"minimum": 0,
"description": "Starting column where to align decorations."
},
"end": {
"type": "integer",
"minimum": 0,
"description": "Ending column where to align decorations."
},
"minimumMargin": {
"type": "integer",
"description": "Minimal space between line end and decoration. Very similar to the global setting `errorLens.margin`, but can only be a number of characters.",
"minimum": 0
},
"useFixedPosition": {
"type": "boolean",
"default": false,
"description": "Use fixed position for decoration that has stuttering/twitching when typing... BUT!!! decoration can overlap text in editor for a short period of time on the active line."
}
},
"default": {
"start": 0,
"end": 0,
"minimumMargin": 0
},
"markdownDescription": "Align inline error message (either by starting position or ending position). Set \"start\" and \"end\" to **0** to disable.",
"additionalProperties": false
},
"errorLens.padding": {
"type": "string",
"default": "",
"markdownDescription": "Padding of the inline message. Visible when `#errorLens.messageBackgroundMode#` is set to \"message\".",
"examples": [
"2px 1ch"
]
},
"errorLens.borderRadius": {
"type": "string",
"default": "0.2em",
"markdownDescription": "Border radius of the inline message. Visible when `#errorLens.messageBackgroundMode#` is set to \"message\".",
"examples": [
"5px",
"5em 0px",
"0px 5em 5em 0px"
]
},
"errorLens.enabledDiagnosticLevels": {
"type": "array",
"items": {
"type": "string",
"enum": [
"error",
"warning",
"info",
"hint"
]
},
"uniqueItems": true,
"description": "Customize which diagnostic levels(severity) to highlight.",
"default": [
"error",
"warning",
"info"
]
},
"errorLens.messageTemplate": {
"type": "string",
"default": "$message",
"markdownDescription": "Template used for all inline messages. Whitespace between items is important.\n\nList of variables:\n\n- `$message` - diagnostic message text\n\n- `$count` - Number of diagnostics on the line\n\n- `$severity` - Severity prefix taken from `#errorLens.severityText#`\n\n- `$source` - Source of diagnostic e.g. \"eslint\"\n\n- `$code` - Code of the diagnostic"
},
"errorLens.messageMaxChars": {
"type": "integer",
"default": 500,
"minimum": 0,
"markdownDescription": "Cut off inline message if it's longer than this value. (Improves performance when the diagnostic message is long)."
},
"errorLens.severityText": {
"type": "array",
"items": {
"type": "string"
},
"markdownDescription": "Replaces `$severity` variable in `#errorLens.messageTemplate#`.",
"default": [
"⛔",
"⚠",
"ℹ",
"🍏"
],
"minItems": 4,
"maxItems": 4
},
"errorLens.messageEnabled": {
"type": "boolean",
"default": true,
"description": "Controls whether inline message is shown or not (Including background highlight)."
},
"errorLens.messageBackgroundMode": {
"type": "string",
"default": "line",
"enum": [
"line",
"message",
"none"
],
"enumDescriptions": [
"The entire line is highlighted.",
"Inline message is highlighted.",
"Message is not highlighted (only has foreground colors)."
],
"description": "Controls how inline message is highlighted in the editor (entire line / only message / none)."
},
"errorLens.problemRangeDecorationEnabled": {
"type": "boolean",
"default": false,
"markdownDescription": "When checked - highlight the entire problem range."
},
"errorLens.editorHoverPartsEnabled": {
"type": "object",
"properties": {
"messageEnabled": {
"type": "boolean",
"default": false
},
"sourceCodeEnabled": {
"type": "boolean",
"default": false
},
"buttonsEnabled": {
"type": "boolean",
"default": false
}
},
"additionalProperties": false,
"default": {
"messageEnabled": false,
"sourceCodeEnabled": false,
"buttonsEnabled": false
},
"markdownDescription": "Controls which parts of the editor hover tooltip to show."
},
"errorLens.statusBarIconsEnabled": {
"type": "boolean",
"markdownDescription": "When enabled - shows highlighted error/warning icons in status bar.",
"default": false
},
"errorLens.statusBarIconsPriority": {
"type": "integer",
"markdownDescription": "Move status bar icons left or right by adjusting the number priority.",
"default": -9000
},
"errorLens.statusBarIconsAlignment": {
"type": "string",
"markdownDescription": "Choose on which side the icons status bar is on: left or right.",
"enum": [
"left",
"right"
],
"default": "left"
},
"errorLens.statusBarIconsTargetProblems": {
"type": "string",
"enum": [
"all",
"activeEditor",
"visibleEditors"
],
"enumDescriptions": [
"Should be the same as native status bar icons - counts all known problems from all files.",
"Count only problems from the active text editor.",
"Count only problems from the visible text editors."
],
"default": "all",
"markdownDescription": "Which problems to use for counting problems at icons status bar."
},
"errorLens.statusBarIconsUseBackground": {
"type": "boolean",
"markdownDescription": "When enabled - highlights status bar icons with background, when disabled - with foreground.",
"default": true
},
"errorLens.statusBarIconsAtZero": {
"type": "string",
"markdownDescription": "What to do when there are 0 errors/warnings - hide the item or strip its background color.",
"enum": [
"hide",
"removeBackground"
],
"default": "removeBackground"
},
"errorLens.statusBarMessageEnabled": {
"type": "boolean",
"markdownDescription": "When enabled - shows message in status bar.",
"default": false
},
"errorLens.statusBarMessagePriority": {
"type": "integer",
"markdownDescription": "Move status bar message left or right by adjusting the number priority.",
"default": -10000
},
"errorLens.statusBarMessageAlignment": {
"type": "string",
"markdownDescription": "Choose on which side the message status bar is on: left or right.",
"enum": [
"left",
"right"
],
"default": "left"
},
"errorLens.statusBarColorsEnabled": {
"type": "boolean",
"markdownDescription": "When enabled - use message decoration foreground as color of Status Bar text.",
"default": false
},
"errorLens.statusBarMessageType": {
"type": "string",
"markdownDescription": "Pick what to show in Status Bar: closest message or only message for the active line.",
"enum": [
"closestProblem",
"closestSeverity",
"activeLine",
"activeCursor"
],
"enumDescriptions": [
"Show closest to the cursor diagnostic.",
"Show closest to the cursor diagnostic (sorted by severity e.g. error will be shown before warning even if it's farther from the cursor).",
"Show only diagnostic that is on the same line as the cursor.",
"Similar to \"activeLine\" but follows the cursor movement inside the line."
],
"default": "activeLine"
},
"errorLens.statusBarCommand": {
"type": "string",
"markdownDescription": "Pick command that activates on click for Status Bar.",
"enum": [
"goToProblem",
"goToLine",
"copyMessage"
],
"default": "goToProblem"
},
"errorLens.statusBarMessageTemplate": {
"type": "string",
"default": "",
"markdownDescription": "Template for status bar message. Whitespace between items is important.\n\nList of variables:\n\n- `$message` - diagnostic message text\n\n- `$count` - Number of diagnostics on the line\n\n- `$severity` - Severity prefix taken from `#errorLens.severityText#`\n\n- `$source` - Source of diagnostic e.g. \"eslint\"\n\n- `$code` - Code of the diagnostic"
},
"errorLens.replace": {
"type": "array",
"default": [],
"items": {
"type": "object",
"properties": {
"matcher": {
"type": "string",
"description": "The RegExp pattern against which to match diagnostic messages"
},
"message": {
"type": "string",
"description": "The entire replacement for messages matching matcher. Can reference match groups like $0 (entire expression), $1 (first capture group), etc."
}
},
"required": [
"matcher",
"message"
]
},
"markdownDescription": "Specify message to transform. E.g. if this is configured to [{ matcher: 'foo (.*)', message: 'just $1' }], the message 'foo bar' would be displayed as 'just bar'."
},
"errorLens.exclude": {
"type": "array",
"default": [],
"items": {
"type": "string"
},
"markdownDescription": "Specify messages that should not be highlighted (RegExp). Strings passed to the RegExp constructor: `new RegExp(EXCLUDE_ITEM, 'i');`"
},
"errorLens.excludeBySource": {
"type": "array",
"default": [],
"items": {
"type": "string"
},
"markdownDescription": "Specify `source` or `source(code)` pair to exclude. Examples: \n\n```json\n[\n\t\"eslint\",// exclude all problems from eslint linter\n\t\"eslint(padded-blocks)\",// exclude padded-blocks rule from eslint linter\n\t\"Pylance(reportUndefinedVariable)\",// exlude reportUndefinedVariable rule from Pylance linter\n]\n```"
},
"errorLens.excludePatterns": {
"type": "array",
"default": [],
"items": {
"type": "string"
},
"markdownDescription": "Exclude files by using [glob](https://code.visualstudio.com/docs/editor/glob-patterns) pattern. Example `[\"**/*.{ts,js}\"]`"
},
"errorLens.excludeWorkspaces": {
"type": "array",
"default": [],
"items": {
"type": "string"
},
"markdownDescription": "Exclude workspaces by path."
},
"errorLens.disableLineComments": {
"type": "object",
"markdownDescription": "Used for `errorLens.disableLine` command that adds a comment disabling linter rule for a line.\nTo force comment on the same line - add `SAME_LINE` to the message: `\"eslint\": \"// eslint-disable-line $code SAME_LINE\"`",
"patternProperties": {
".*": {
"type": "string"
}
},
"default": {
"eslint": "// eslint-disable-next-line $code",
"Stylelint": "/* stylelint-disable-next-line $code */"
}
},
"errorLens.lintFilePaths": {
"type": "object",
"default": {
"eslint": [
"**/*.eslintrc.{js,cjs,yaml,yml,json}",
"**/*package.json"
],
"Stylelint": [
"**/*.stylelintrc",
"**/*.stylelintrc.{cjs,js,json,yaml,yml}",
"**/*stylelint.config.{cjs,js}",
"**/*package.json"
]
},
"patternProperties": {
".*": {
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string",
"enum": [
"none"
]
}
]
}
},
"markdownDescription": "Specify where to search for linter rule definitions by diagnostic source ([glob](https://code.visualstudio.com/docs/editor/glob-patterns) for local linter files). `node_modules` folder is excluded."
},
"errorLens.searchForProblemQuery": {
"type": "string",
"default": "https://duckduckgo.com/?q=$message",
"markdownDescription": "Pick query to open in default browser when searching for problem with `errorLens.searchForProblem` command."
},
"errorLens.selectProblemType": {
"type": "string",
"default": "closestProblem",
"enum": [
"closestProblem",
"closestSeverity",
"activeLine"
],
"enumDescriptions": [
"Show closest to the cursor diagnostic.",
"Show closest to the cursor diagnostic (sorted by severity e.g. error will be shown before warning even if it's farther from the cursor).",
"Show only diagnostic that is on the same line as the cursor."
],
"markdownDescription": "Which problem to select (closest / active line) when executing `errorLens.selectProblem` command."
},
"errorLens.light": {
"type": "object",
"markdownDescription": "Specify color of decorations for when the light color theme is active.",
"properties": {
"errorGutterIconPath": {
"type": "string",
"description": "Absolute path to error gutter icon for light themes.",
"default": ""
},
"warningGutterIconPath": {
"type": "string",
"description": "Absolute path to warning gutter icon for light themes.",
"default": ""
},
"infoGutterIconPath": {
"type": "string",
"description": "Absolute path to info gutter icon for light themes.",
"default": ""
},
"hintGutterIconPath": {
"type": "string",
"description": "Absolute path to hint gutter icon for light themes.",
"default": ""
},
"errorGutterIconColor": {
"type": "string",
"default": "",
"markdownDescription": "Error color of simple gutter icons (shapes and letters) for light themes.",
"format": "color"
},
"warningGutterIconColor": {
"type": "string",
"default": "",
"markdownDescription": "Warning color of simple gutter icons (shapes and letters) for light themes.",
"format": "color"
},
"infoGutterIconColor": {
"type": "string",
"default": "",
"markdownDescription": "Info color of simple gutter icons (shapes and letters) for light themes.",
"format": "color"
},
"hintGutterIconColor": {
"type": "string",
"default": "",
"markdownDescription": "Hint color of simple gutter icons (shapes and letters) for light themes.",
"format": "color"
}
}
},
"errorLens.delay": {
"type": "integer",
"markdownDescription": "Delay (ms) before showing problem decorations (**0** to disable). Minimum delay of **500** is enforced by the extension. `#errorLens.delayMode#` controls how to handle the delay.",
"default": 0
},
"errorLens.delayMode": {
"type": "string",
"default": "new",
"enum": [
"old",
"debounce",
"new"
],
"markdownEnumDescriptions": [
"New problems appear according to `errorLens.delay` setting. Fixed problems disappear faster. A bit buggy.",
"Decorations for problems are debounced according to `errorLens.delay` setting.",
"Decorations disappear when document changes (typing)."
],
"markdownDescription": "Pick which version of the delay to use."
},
"errorLens.onSave": {
"type": "boolean",
"description": "When enabled - updates decorations only on document save (manual).",
"default": false
},
"errorLens.onSaveTimeout": {
"type": "number",
"description": "Time period (ms) that used for showing decorations after the document save (manual, not auto save).",
"default": 1000,
"minimum": 500
},
"errorLens.onSaveUpdateOnActiveEditorChange": {
"type": "boolean",
"description": "When `#errorLens.onSave#` enabled - extension still draws decorations when active/visible editors change.",
"default": true
},
"errorLens.enableOnDiffView": {
"type": "boolean",
"markdownDescription": "Enable decorations when viewing a diff view in the editor (e.g. Git diff).",
"default": false
},
"errorLens.followCursor": {
"type": "string",
"enum": [
"allLines",
"allLinesExceptActive",
"activeLine",
"closestProblem",
"closestProblemMultiline",
"closestProblemMultilineInViewport",
"closestProblemMultilineBySeverity"
],
"enumDescriptions": [
"Highlight all problems in file",
"Highlight all problems in file (except the line at the cursor)",
"Highlight only the problem at the cursor",
"Highlight only closest to the cursor problem",
"Highlight only closest to the cursor problem (only in visible lines) (decoration spans multiple lines)",
"Highlight only closest to the cursor problem (error before warning, ...) (decoration spans multiple lines)"
],
"description": "Highlight only portion of the problems.",
"default": "allLines"
},
"errorLens.followCursorMore": {
"type": "number",
"markdownDescription": "Augments `#errorLens.followCursor#`.\nAdds number of lines to top and bottom when `#errorLens.followCursor#` is set to `activeLine`.\n Adds number of closest problems when `#errorLens.followCursor#` is `closestProblem`",
"default": 0
},
"errorLens.multilineMessage": {
"type": "object",
"properties": {
"decorationMaxNumberOfLines": {
"type": "integer",
"default": 6,
"maximum": 20
},
"maxColumnForCalculation": {
"type": "integer",
"default": 130
},
"preferFittingMessageMultiplier": {
"type": "number",
"default": 2
},
"highlightProblemLine": {
"type": "string",
"enum": [
"line",
"range",
"none"
],
"default": "line"
},
"alignStart": {
"type": "integer",
"minimum": 0,
"default": 0,
"description": "NOT IMPLEMENTED."
},
"alignEnd": {
"type": "integer",
"minimum": 0,
"default": 0,
"description": "NOT IMPLEMENTED."
},
"margin": {
"type": "integer",
"default": 4
},
"padding": {
"type": "integer",
"default": 1
},
"borderRadius": {
"type": "string",
"default": ""
},
"useFixedPosition": {
"type": "boolean",
"default": false,
"description": "Use fixed position for decoration that has stuttering/twitching when typing... BUT!!! decoration can overlap text in editor for a short period of time on the active line."
}
},
"default": {
"decorationMaxNumberOfLines": 6,
"preferFittingMessageMultiplier": 2,
"maxColumnForCalculation": 130,
"preferSameLineMultiplier": 1,
"highlightProblemLine": "line",
"alignStart": 0,
"alignEnd": 0,
"margin": 4,
"padding": 1,
"borderRadius": "",
"useFixedPosition": false
},
"additionalProperties": false,
"markdownDescription": "EXPERIMENTAL. Not implemented."
},
"errorLens.gutterIconsEnabled": {
"type": "boolean",
"description": "When enabled - shows gutter icons (In place of the debug breakpoint icon).",
"default": false
},
"errorLens.gutterIconsFollowCursorOverride": {
"type": "boolean",
"markdownDescription": "When enabled and `#errorLens.followCursor#` setting is not `allLines`, then gutter icons would be rendered for all problems. But line decorations (background, message) only for active line.",
"default": true
},
"errorLens.gutterIconSize": {
"type": "string",
"markdownDescription": "Change gutter icon size. Examples: `auto`, `contain`, `cover`, `50%`, `150%` ([CSS units](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size)).",
"examples": [
"auto",
"contain",
"cover",
"50%",
"150%"
],
"default": "100%"
},
"errorLens.gutterIconSet": {
"type": "string",
"description": "Change gutter icon style.",
"enum": [
"default",
"defaultOutline",
"borderless",
"circle",
"square",
"squareRounded",
"letter",
"emoji"
],
"enumDescriptions": [
"Similar to vscode icons in Problems Panel (old).",
"Similar to vscode icons in Problems Panel (new).",
"Similar to vscode icons in Problems Panel, only without a border.",
"Simple filled circle.",
"Simple filled square.",
"Simple filled square with rounded corners.",
"Simple one letter icon (E,W,I,H).",
"Emoji. (`errorLens.gutterEmoji` to control which emoji to show.)"
],
"default": "default"
},
"errorLens.gutterEmoji": {
"type": "object",
"properties": {
"error": {
"type": "string",
"minLength": 0,
"maxLength": 2,
"default": "💀"
},
"warning": {
"type": "string",
"minLength": 0,
"maxLength": 2,
"default": "😞"
},
"info": {
"type": "string",
"minLength": 0,
"maxLength": 2,
"default": "🆗"
},
"hint": {
"type": "string",
"minLength": 0,
"maxLength": 2,
"default": "🍏"
}
},
"default": {
"error": "💀",
"warning": "😞",
"info": "🆗",
"hint": "🍏"
},
"additionalProperties": false,
"markdownDescription": "Pick emoji symbol for gutter icon when `#errorLens.gutterIconSet#` is `emoji`."
},
"errorLens.errorGutterIconPath": {
"type": "string",
"description": "Absolute path to error gutter icon.",
"default": ""
},
"errorLens.warningGutterIconPath": {
"type": "string",
"description": "Absolute path to warning gutter icon.",
"default": ""
},
"errorLens.infoGutterIconPath": {
"type": "string",
"description": "Absolute path to info gutter icon.",
"default": ""
},
"errorLens.hintGutterIconPath": {
"type": "string",
"description": "Absolute path to hint gutter icon.",
"default": ""
},
"errorLens.errorGutterIconColor": {
"type": "string",
"default": "#e45454",
"markdownDescription": "Error color of simple gutter icons (shapes and letters).",
"format": "color"
},
"errorLens.warningGutterIconColor": {
"type": "string",
"default": "#ff942f",
"markdownDescription": "Warning color of simple gutter icons (shapes and letters).",
"format": "color"
},
"errorLens.infoGutterIconColor": {
"type": "string",
"default": "#00b7e4",
"markdownDescription": "Info color of simple gutter icons (shapes and letters).",
"format": "color"
},
"errorLens.hintGutterIconColor": {
"type": "string",
"default": "#2faf64",
"markdownDescription": "Hint color of simple gutter icons (shapes and letters).",
"format": "color"
},
"errorLens.removeLinebreaks": {
"type": "boolean",
"default": true,
"markdownDescription": "When enabled - replaces line breaks in inline diagnostic message with whitespaces."
},
"errorLens.replaceLinebreaksSymbol": {
"type": "string",
"default": "⏎",
"markdownDescription": "Symbol to replace linebreaks. Requires enabling `#errorLens.removeLinebreaks#`."
},
"errorLens.scrollbarHackEnabled": {
"type": "boolean",
"default": false,
"markdownDescription": "When enabled - prevents showing horizontal scrollbar in editor (caused by inline decorations). Also prevents mouse hover at inline message."
},
"errorLens.decorations": {
"type": "object",
"markdownDescription": "Advanced decoration tweaking. Possible keys: `errorRange`, `warningRange`, `infoRange`, `hintRange`.\n\n Possible properties: `backgroundColor`, `color`, `outline`, `border`, ...,",
"default": {
"errorRange": {},
"warningRange": {},
"infoRange": {},
"hintRange": {}
},
"patternProperties": {
"^(errorRange|warningRange|infoRange|hintRange|errorMessage|warningMessage|infoMessage|hintMessage)$": {
"type": "object",
"markdownDescription": "☑️ Key exists.",
"properties": {}
}
},
"additionalProperties": false
},
"errorLens.ignoreUntitled": {
"type": "boolean",
"default": false,
"description": "Controls whether to run on untitled (unsaved) files."
},
"errorLens.codeLensEnabled": {
"type": "boolean",
"default": false,
"markdownDescription": "Controls whether to show the Error Lens as a Code Lens above the code. "
},
"errorLens.codeLensLength": {
"type": "object",
"properties": {
"min": {
"type": "integer",
"minimum": 0,
"default": 0
},
"max": {
"type": "integer",
"minimum": 10,
"default": 200
}
},
"additionalProperties": false,
"default": {
"min": 0,
"max": 200
},
"markdownDescription": "Enforce minimum length of the first code lens item and max length of subsequent items."
},
"errorLens.codeLensTemplate": {
"type": "string",
"default": "$severity $message",
"markdownDescription": "Template used for all messages appearing in the `#errorLens.codeLensEnabled#`. Whitespace between items is important.\n\nList of variables:\n\n- `$message` - diagnostic message text\n\n- `$count` - Number of diagnostics on the line\n\n- `$severity` - Severity prefix taken from `#errorLens.severityText#`\n\n- `$source` - Source of diagnostic e.g. \"eslint\"\n\n- `$code` - Code of the diagnostic"
},
"errorLens.codeLensOnClick": {
"type": "string",
"enum": [
"none",
"showProblemsView",
"showQuickFix",
"searchForProblem"
],
"enumDescriptions": [
"Does nothing.",
"Shows problems view.",
"Shows quick fix menu.",
"Search for the problem."
],
"default": "showQuickFix",
"markdownDescription": "Controls what do on clicking the `#errorLens.codeLensEnabled#`."
}
}
},
"colors": [
{
"id": "errorLens.errorBackground",
"defaults": {
"dark": "#e454541b",
"light": "#e4545420",
"highContrast": "#e454541b"
},
"description": "Background color of the entire line containing error."
},
{
"id": "errorLens.errorMessageBackground",
"defaults": {
"dark": "#e4545419",
"light": "#e4545419",
"highContrast": "#e4545419"
},
"description": "Background color of the error message."
},
{
"id": "errorLens.errorRangeBackground",
"defaults": {
"dark": "#e4545419",
"light": "#e4545419",
"highContrast": "#e4545419"