fontFamily |
string |
"" |
Font family of message. If the new font breaks layout - try to use smaller fontSize. |
fontWeight |
string |
"normal" |
Font Weight of message."normal" is alias for 400, "bold" is alias for 700) |
fontStyleItalic |
boolean |
false |
When enabled - shows message in italic. |
fontSize |
string |
"" |
Font size of message (CSS units). |
margin |
string |
"4ch" |
Distance between the end of the line and the message (CSS units). |
padding |
string |
"" |
Padding of the message. Visible difference when message colors are set. issues/23. Example: 2px 1ch . |
borderRadius |
string |
"3px" |
Border radius of the message. Visible difference when message colors are set. issues/23. Example: 5px . |
enabledDiagnosticLevels |
array |
["error","warning","info","hint"] |
Customize which diagnostic levels to highlight. |
annotationPrefix |
array |
["ERROR: ","WARNING: ","INFO: ","HINT: "] |
Specify diagnostic message prefixes (when addAnnotationTextPrefixes is enabled). For example, emoji: ❗ ⚠ ℹ. |
addAnnotationTextPrefixes |
boolean |
false |
When enabled - prepends diagnostic severity ('ERROR:', 'WARNING:' etc) to the message. (Prefixes can be configured with annotationPrefix setting). |
addNumberOfDiagnostics |
boolean |
false |
When enabled - prepends number of diagnostics on the line. Like: [1/2] . |
messageEnabled |
boolean |
true |
Controls whether inline message is shown or not (Including background highlight). |
statusBarMessageEnabled |
boolean |
false |
When enabled - shows message in status bar. |
statusBarColorsEnabled |
boolean |
false |
When enabled - use message decoration foreground as color of Status Bar text. |
statusBarMessageType |
string |
"activeLine" |
Pick what to show in Status Bar: closest message or only message for the active line. |
exclude |
array |
[] |
Specify messages that should not be highlighted (RegExp). |
excludeBySource |
array |
[] |
Specify sources that should not be highlighted (string). Example: ["eslint"] |
excludePatterns |
array |
[] |
Exclude files by using glob pattern. Example ["**/*.{ts,js}"] |
light |
object |
|
Specify color of decorations for when the light color theme is active. |
delay |
integer |
0 |
EXPERIMENTAL Delay (ms) before showing problem decorations (0 to disable). |
onSave |
boolean |
false |
When enabled - updates decorations only on document save. |
onSaveTimeout |
number |
1000 |
Time period (ms) that used for showing decorations after the document save. |
followCursor |
string |
"allLines" |
Highlight only portion of the problems. |
followCursorMore |
number |
0 |
Augments followCursor . Adds number of lines to top and bottom when followCursor is activeLine . Adds number of closest problems when followCursor is closestProblem |
gutterIconsEnabled |
boolean |
false |
When enabled - shows gutter icons (In place of the debug breakpoint icon). |
gutterIconsFollowCursorOverride |
boolean |
true |
When enabled and followCursor setting is not allLines , then gutter icons would be rendered for all problems. But line decorations (background, message) only for active line. |
gutterIconSize |
string |
"100%" |
Change gutter icon size. Examples: auto , contain , cover , 50% , 150% |
gutterIconSet |
string |
"default" |
Change gutter icon style. |
errorGutterIconPath |
string |
|
Absolute path to error gutter icon. |
warningGutterIconPath |
string |
|
Absolute path to warning gutter icon. |
infoGutterIconPath |
string |
|
Absolute path to info gutter icon. |
errorGutterIconColor |
string |
"#e45454" |
Error color of circle gutter icon set. |
warningGutterIconColor |
string |
"#ff942f" |
Warning color of circle gutter icon set. |
infoGutterIconColor |
string |
"#00b7e4" |
Info color of circle gutter icon set. |
scrollbarHackEnabled |
boolean |
false |
When enabled - prevents showing horizontal scrollbar for decorations. (Might have a conflict with errorLens.fontFamily or errorLens.padding settings). |