forked from usernamehw/vscode-error-lens
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
710 lines (710 loc) · 20.8 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
{
"name": "errorlens",
"displayName": "Error Lens",
"description": "Improve highlighting of errors, warnings and other language diagnostics.",
"version": "3.4.1",
"publisher": "usernamehw",
"license": "MIT",
"engines": {
"vscode": "^1.59.0",
"npm": ">=7.0.0"
},
"extensionKind": [
"ui",
"workspace"
],
"categories": [
"Other"
],
"qna": false,
"keywords": [
"highlight",
"problem",
"problems",
"error",
"warning",
"inline",
"message",
"diagnostic",
"diagnostics",
"status bar",
"gutter"
],
"icon": "img/icon.png",
"repository": {
"type": "git",
"url": "https://github.com/usernamehw/vscode-error-lens"
},
"activationEvents": [
"onStartupFinished",
"onCommand:errorLens.toggle",
"onCommand:errorLens.toggleError",
"onCommand:errorLens.toggleWarning",
"onCommand:errorLens.toggleInfo",
"onCommand:errorLens.toggleHint",
"onCommand:errorLens.copyProblemMessage"
],
"main": "./dist/extension",
"contributes": {
"commands": [
{
"command": "errorLens.toggle",
"title": "Toggle (Enable/Disable) Everything",
"category": "Error Lens"
},
{
"command": "errorLens.toggleError",
"title": "Toggle Errors",
"category": "Error Lens"
},
{
"command": "errorLens.toggleWarning",
"title": "Toggle Warnings",
"category": "Error Lens"
},
{
"command": "errorLens.toggleInfo",
"title": "Toggle Info",
"category": "Error Lens"
},
{
"command": "errorLens.toggleHint",
"title": "Toggle Hint",
"category": "Error Lens"
},
{
"command": "errorLens.copyProblemMessage",
"title": "Copy Problem Message",
"category": "Error Lens"
}
],
"configuration": {
"properties": {
"errorLens.enabled": {
"type": "boolean",
"default": true,
"description": "Controls all decorations and features (except commands)."
},
"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": "",
"description": "Font size of inline message (CSS units)."
},
"errorLens.margin": {
"type": "string",
"default": "4ch",
"description": "Distance between the last word on the line and the start of inline message (CSS units)."
},
"errorLens.padding": {
"type": "string",
"default": "",
"markdownDescription": "Padding of the message. Visible difference when `message` colors are set. [issues/23](https://github.com/usernamehw/vscode-error-lens/issues/23). Example: `2px 1ch`.",
"examples": [
"2px 1ch"
]
},
"errorLens.borderRadius": {
"type": "string",
"default": "3px",
"markdownDescription": "Border radius of the message. Visible difference when `message` colors are set. [issues/23](https://github.com/usernamehw/vscode-error-lens/issues/23). Example: `5px`.",
"examples": [
"5px"
]
},
"errorLens.enabledDiagnosticLevels": {
"type": "array",
"items": {
"type": "string",
"enum": [
"error",
"warning",
"info",
"hint"
]
},
"uniqueItems": true,
"description": "Customize which diagnostic levels 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": 10,
"markdownDescription": "Cut off inline message if it's longer than this value."
},
"errorLens.severityText": {
"type": "array",
"items": {
"type": "string"
},
"markdownDescription": "Replaces `$severity` variable in `#errorLens.messageTemplate#`.",
"default": [
"ERROR",
"WARNING",
"INFO",
"HINT"
],
"maxItems": 4
},
"errorLens.annotationPrefix": {
"type": "array",
"items": {
"type": "string"
},
"markdownDescription": "Specify diagnostic message prefixes (when `#errorLens.addAnnotationTextPrefixes#` is enabled). For example, emoji: ❗ ⚠ ℹ.",
"markdownDeprecationMessage": "Deprecated in favor of `#errorLens.severityText#` & `#errorLens.messageTemplate#`. https://github.com/usernamehw/vscode-error-lens/issues/92",
"default": [
"ERROR: ",
"WARNING: ",
"INFO: ",
"HINT: "
],
"maxItems": 4
},
"errorLens.addAnnotationTextPrefixes": {
"type": "boolean",
"markdownDescription": "When enabled - prepends diagnostic severity ('ERROR:', 'WARNING:' etc) to the message. (Prefixes can be configured with `annotationPrefix` setting).",
"markdownDeprecationMessage": "Deprecated in favor of `#errorLens.messageTemplate#`. https://github.com/usernamehw/vscode-error-lens/issues/92",
"default": false
},
"errorLens.addNumberOfDiagnostics": {
"type": "boolean",
"markdownDescription": "When enabled - prepends number of diagnostics on the line. Like: `[1/2]`.",
"markdownDeprecationMessage": "Deprecated in favor of `#errorLens.messageTemplate#`. https://github.com/usernamehw/vscode-error-lens/issues/92",
"default": false
},
"errorLens.messageEnabled": {
"type": "boolean",
"default": true,
"description": "Controls whether inline message is shown or not (Including background highlight)."
},
"errorLens.statusBarIconsEnabled": {
"type": "boolean",
"markdownDescription": "When enabled - shows highlighted error/warning icons in status bar.",
"default": false
},
"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": "hide"
},
"errorLens.statusBarMessageEnabled": {
"type": "boolean",
"markdownDescription": "When enabled - shows message in status bar.",
"default": false
},
"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"
],
"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."
],
"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. See `#errorLens.messageTemplate#`."
},
"errorLens.exclude": {
"type": "array",
"default": [],
"items": {
"type": "string"
},
"description": "Specify messages that should not be highlighted (RegExp)."
},
"errorLens.excludeBySource": {
"type": "array",
"default": [],
"items": {
"type": "string"
},
"markdownDescription": "Specify sources that should not be highlighted (string). Example: `[\"eslint\"]`"
},
"errorLens.excludePatterns": {
"type": "array",
"default": [],
"items": {
"type": "string"
},
"markdownDescription": "Exclude files by using glob pattern. Example `[\"**/*.{ts,js}\"]`"
},
"errorLens.light": {
"type": "object",
"description": "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": ""
},
"errorGutterIconColor": {
"type": "string",
"default": "",
"markdownDescription": "Error color of `circle` gutter icon set for light themes.",
"format": "color"
},
"warningGutterIconColor": {
"type": "string",
"default": "",
"markdownDescription": "Warning color of `circle` gutter icon set for light themes.",
"format": "color"
},
"infoGutterIconColor": {
"type": "string",
"default": "",
"markdownDescription": "Info color of `circle` gutter icon set 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. New errors will be added with this delay; old errors that were fixed should disappear faster.",
"default": 0
},
"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.",
"default": 1000
},
"errorLens.followCursor": {
"type": "string",
"enum": [
"allLines",
"activeLine",
"closestProblem"
],
"enumDescriptions": [
"Highlight all problems in file",
"Highlight only the problem at the cursor",
"Highlight only closest to the cursor problem"
],
"description": "Highlight only portion of the problems.",
"default": "allLines"
},
"errorLens.followCursorMore": {
"type": "number",
"markdownDescription": "Augments `followCursor`.\nAdds number of lines to top and bottom when `followCursor` is `activeLine`.\n Adds number of closest problems when `followCursor` is `closestProblem`",
"default": 0
},
"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%`",
"default": "100%"
},
"errorLens.gutterIconSet": {
"type": "string",
"description": "Change gutter icon style.",
"enum": [
"default",
"defaultOutline",
"borderless",
"circle"
],
"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."
],
"default": "default"
},
"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.errorGutterIconColor": {
"type": "string",
"default": "#e45454",
"markdownDescription": "Error color of `circle` gutter icon set.",
"format": "color"
},
"errorLens.warningGutterIconColor": {
"type": "string",
"default": "#ff942f",
"markdownDescription": "Warning color of `circle` gutter icon set.",
"format": "color"
},
"errorLens.infoGutterIconColor": {
"type": "string",
"default": "#00b7e4",
"markdownDescription": "Info color of `circle` gutter icon set.",
"format": "color"
},
"errorLens.removeLinebreaks": {
"type": "boolean",
"default": true,
"markdownDescription": "When enabled - replaces line breaks in inline diagnostic message with whitespaces."
},
"errorLens.scrollbarHackEnabled": {
"type": "boolean",
"default": false,
"markdownDescription": "When enabled - prevents showing horizontal scrollbar in editor (caused by inline decorations)."
}
}
},
"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": "#fff0",
"light": "#fff0",
"highContrast": "#fff0"
},
"description": "Background color of the error message."
},
{
"id": "errorLens.errorBackgroundLight",
"defaults": {
"dark": "#e4545420",
"light": "#e4545420",
"highContrast": "#e4545420"
},
"description": "Background color of the entire line containing error (Only in light themes)."
},
{
"id": "errorLens.errorForeground",
"defaults": {
"dark": "#ff6464",
"light": "#e45454",
"highContrast": "#ff6464"
},
"description": "Text color used to highlight lines containing errors."
},
{
"id": "errorLens.errorForegroundLight",
"defaults": {
"dark": "#e45454",
"light": "#e45454",
"highContrast": "#e45454"
},
"description": "Text color used to highlight lines containing errors (Only in light themes)."
},
{
"id": "errorLens.warningBackground",
"defaults": {
"dark": "#ff942f1b",
"light": "#ff942f20",
"highContrast": "#ff942f1b"
},
"description": "Background color used to highlight lines containing warnings."
},
{
"id": "errorLens.warningMessageBackground",
"defaults": {
"dark": "#fff0",
"light": "#fff0",
"highContrast": "#fff0"
},
"description": "Background color of the warning message."
},
{
"id": "errorLens.warningBackgroundLight",
"defaults": {
"dark": "#ff942f20",
"light": "#ff942f20",
"highContrast": "#ff942f20"
},
"description": "Background color used to highlight lines containing warnings (Only in light themes)."
},
{
"id": "errorLens.warningForeground",
"defaults": {
"dark": "#fa973a",
"light": "#ff942f",
"highContrast": "#fa973a"
},
"description": "Text color used to highlight lines containing warnings."
},
{
"id": "errorLens.warningForegroundLight",
"defaults": {
"dark": "#ff942f",
"light": "#ff942f",
"highContrast": "#ff942f"
},
"description": "Text color used to highlight lines containing warnings (Only in light themes)."
},
{
"id": "errorLens.infoBackground",
"defaults": {
"dark": "#00b7e420",
"light": "#00b7e420",
"highContrast": "#00b7e420"
},
"description": "Background color used to highlight lines containing info."
},
{
"id": "errorLens.infoMessageBackground",
"defaults": {
"dark": "#fff0",
"light": "#fff0",
"highContrast": "#fff0"
},
"description": "Background color of the info message."
},
{
"id": "errorLens.infoBackgroundLight",
"defaults": {
"dark": "#00b7e420",
"light": "#00b7e420",
"highContrast": "#00b7e420"
},
"description": "Background color used to highlight lines containing info (Only in light themes)."
},
{
"id": "errorLens.infoForeground",
"defaults": {
"dark": "#00b7e4",
"light": "#00b7e4",
"highContrast": "#00b7e4"
},
"description": "Text color used to highlight lines containing info."
},
{
"id": "errorLens.infoForegroundLight",
"defaults": {
"dark": "#00b7e4",
"light": "#00b7e4",
"highContrast": "#00b7e4"
},
"description": "Text color used to highlight lines containing info (Only in light themes)."
},
{
"id": "errorLens.hintBackground",
"defaults": {
"dark": "#17a2a220",
"light": "#17a2a220",
"highContrast": "#17a2a220"
},
"description": "Background color used to highlight lines containing hints."
},
{
"id": "errorLens.hintMessageBackground",
"defaults": {
"dark": "#fff0",
"light": "#fff0",
"highContrast": "#fff0"
},
"description": "Background color of the hint message."
},
{
"id": "errorLens.hintBackgroundLight",
"defaults": {
"dark": "#17a2a220",
"light": "#17a2a220",
"highContrast": "#17a2a220"
},
"description": "Background color used to highlight lines containing hints (Only in light themes)."
},
{
"id": "errorLens.hintForeground",
"defaults": {
"dark": "#2faf64",
"light": "#2faf64",
"highContrast": "#2faf64"
},
"description": "Text color used to highlight lines containing hints."
},
{
"id": "errorLens.hintForegroundLight",
"defaults": {
"dark": "#2faf64",
"light": "#2faf64",
"highContrast": "#2faf64"
},
"description": "Text color used to highlight lines containing hints (Only in light themes)."
},
{
"id": "errorLens.statusBarIconErrorForeground",
"defaults": {
"dark": "#ff6464",
"light": "#e45454",
"highContrast": "#ff6464"
},
"description": "Status bar icon item error color."
},
{
"id": "errorLens.statusBarIconWarningForeground",
"defaults": {
"dark": "#fa973a",
"light": "#ff942f",
"highContrast": "#fa973a"
},
"description": "Status bar icon item error color."
},
{
"id": "errorLens.statusBarErrorForeground",
"defaults": {
"dark": "#ff6464",
"light": "#e45454",
"highContrast": "#ff6464"
},
"description": "Status bar item error color."
},
{
"id": "errorLens.statusBarWarningForeground",
"defaults": {
"dark": "#fa973a",
"light": "#ff942f",
"highContrast": "#fa973a"
},
"description": "Status bar item warning color."
},
{
"id": "errorLens.statusBarInfoForeground",
"defaults": {
"dark": "#00b7e4",
"light": "#00b7e4",
"highContrast": "#00b7e4"
},
"description": "Status bar item info color."
},
{
"id": "errorLens.statusBarHintForeground",
"defaults": {
"dark": "#2faf64",
"light": "#2faf64",
"highContrast": "#2faf64"
},
"description": "Status bar item hint color."
}
]
},
"scripts": {
"vscode:prepublish": "webpack --mode production --color",
"watch": "webpack --mode development --watch --stats minimal"
},
"devDependencies": {
"@soda/friendly-errors-webpack-plugin": "^1.8.0",
"@types/lodash": "^4.14.176",
"@types/node": "^14.17.33",
"@types/vscode": "^1.59.0",
"@typescript-eslint/eslint-plugin": "^5.3.1",
"@typescript-eslint/parser": "^5.3.1",
"eslint": "^7.32.0",
"eslint-plugin-no-autofix": "1.2.3",
"ts-loader": "^9.2.6",
"typescript": "^4.4.4",
"webpack": "^5.64.0",
"webpack-cli": "^4.9.1"
},
"dependencies": {
"lodash": "^4.17.21"
}
}