enabled |
true |
Controls all decorations and features (except commands). |
respectUpstreamEnabled |
{"enabled":true, "inlineMessage":true, "gutter":true, "statusBar":false} |
When enabled - extension will take into account global VSCode setting #problems.visibility# . (1.85.0 changelog). |
enabledInMergeConflict |
true |
Controls if decorations are shown if the editor has git merge conflict indicators <<<<<<< or ======= or >>>>>>> . |
fontFamily |
"" |
Font family of inline message. |
fontWeight |
"normal" |
Font weight of inline message. "normal" is alias for 400, "bold" is alias for 700). |
fontStyleItalic |
false |
When enabled - shows inline message in italic font style. |
fontSize |
"" |
Font size of inline message (CSS units). |
margin |
"4ch" |
Distance between the last word on the line and the start of inline message (CSS units). |
alignMessage |
{"start":0, "end":0, "minimumMargin":0} |
Align inline error message (either by starting position or ending position). |
padding |
"" |
Padding of the inline message. Visible when #errorLens.messageBackgroundMode# is set to "message". |
borderRadius |
"0.2em" |
Border radius of the inline message. Visible when #errorLens.messageBackgroundMode# is set to "message". |
enabledDiagnosticLevels |
["error", "warning", "info"] |
Customize which diagnostic levels(severity) to highlight. |
messageTemplate |
"$message" |
Template used for all inline messages. Whitespace between items is important. List of variables: - $message - diagnostic message text - $count - Number of diagnostics on the line - $severity - Severity prefix taken from #errorLens.severityText# - $source - Source of diagnostic e.g. "eslint" - $code - Code of the diagnostic |
messageMaxChars |
500 |
Cut off inline message if it's longer than this value. (Improves performance when the diagnostic message is long). |
severityText |
["⛔", "⚠", "ℹ", "🍏"] |
Replaces $severity variable in #errorLens.messageTemplate# . |
messageEnabled |
true |
Controls whether inline message is shown or not (Including background highlight). |
messageBackgroundMode |
"line" |
Controls how inline message is highlighted in the editor (entire line / only message / none). |
problemRangeDecorationEnabled |
false |
When checked - highlight the entire problem range. |
editorHoverPartsEnabled |
{"messageEnabled":false, "sourceCodeEnabled":false, "buttonsEnabled":false} |
Controls which parts of the editor hover tooltip to show. |
statusBarIconsEnabled |
false |
When enabled - shows highlighted error/warning icons in status bar. |
statusBarIconsPriority |
-9000 |
Move status bar icons left or right by adjusting the number priority. |
statusBarIconsAlignment |
"left" |
Choose on which side the icons status bar is on: left or right. |
statusBarIconsTargetProblems |
"all" |
Which problems to use for counting problems at icons status bar. |
statusBarIconsUseBackground |
true |
When enabled - highlights status bar icons with background, when disabled - with foreground. |
statusBarIconsAtZero |
"removeBackground" |
What to do when there are 0 errors/warnings - hide the item or strip its background color. |
statusBarMessageEnabled |
false |
When enabled - shows message in status bar. |
statusBarMessagePriority |
-10000 |
Move status bar message left or right by adjusting the number priority. |
statusBarMessageAlignment |
"left" |
Choose on which side the message status bar is on: left or right. |
statusBarColorsEnabled |
false |
When enabled - use message decoration foreground as color of Status Bar text. |
statusBarMessageType |
"activeLine" |
Pick what to show in Status Bar: closest message or only message for the active line. |
statusBarCommand |
"goToProblem" |
Pick command that activates on click for Status Bar. |
statusBarMessageTemplate |
"" |
Template for status bar message. Whitespace between items is important. List of variables: - $message - diagnostic message text - $count - Number of diagnostics on the line - $severity - Severity prefix taken from #errorLens.severityText# - $source - Source of diagnostic e.g. "eslint" - $code - Code of the diagnostic |
replace |
[] |
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'. |
exclude |
[] |
Specify messages that should not be highlighted (RegExp). Strings passed to the RegExp constructor: new RegExp(EXCLUDE_ITEM, 'i'); |
excludeBySource |
[] |
Specify source or source(code) pair to exclude. Examples: - eslint disable all ESLint problems - eslint(padded-blocks) disable padded-blocks rule of ESLint - Pylance disable all Pylance linter problems - Pylance(reportUndefinedVariable) disable reportUndefinedVariable rule of Pylance |
excludePatterns |
[] |
Exclude files by using glob pattern. Example ["**/*.{ts,js}"] |
excludeWorkspaces |
[] |
Exclude workspaces by path. |
disableLineComments |
{...} |
Used for errorLens.disableLine command that adds a comment disabling linter rule for a line. To force comment on the same line - add SAME_LINE to the message: "eslint": "// eslint-disable-line $code SAME_LINE" |
lintFilePaths |
{...} |
Specify where to search for linter rule definitions by diagnostic source (glob for local linter files). node_modules folder is excluded. |
searchForProblemQuery |
"https://duckduckgo.com/?q=$message" |
Pick query to open in default browser when searching for problem with errorLens.searchForProblem command. |
selectProblemType |
"closestProblem" |
Which problem to select (closest / active line) when executing errorLens.selectProblem command. |
light |
|
Specify color of decorations for when the light color theme is active. |
delay |
0 |
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. |
delayMode |
"new" |
Pick which version of the delay to use. |
onSave |
false |
When enabled - updates decorations only on document save (manual). |
onSaveTimeout |
1000 |
Time period (ms) that used for showing decorations after the document save. |
onSaveUpdateOnActiveEditorChange |
true |
When #errorLens.onSave# enabled - extension still draws decorations when active/visible editors change. |
enableOnDiffView |
false |
Enable decorations when viewing a diff view in the editor (e.g. Git diff). |
followCursor |
"allLines" |
Highlight only portion of the problems. |
followCursorMore |
0 |
Augments #errorLens.followCursor# . Adds number of lines to top and bottom when #errorLens.followCursor# is set to activeLine . Adds number of closest problems when #errorLens.followCursor# is closestProblem |
gutterIconsEnabled |
false |
When enabled - shows gutter icons (In place of the debug breakpoint icon). |
gutterIconsFollowCursorOverride |
true |
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. |
gutterIconSize |
"100%" |
Change gutter icon size. Examples: auto , contain , cover , 50% , 150% (CSS units). |
gutterIconSet |
"default" |
Change gutter icon style. |
gutterEmoji |
{"error":"💀", "warning":"😞", "info":"🆗", "hint":"🍏"} |
Pick emoji symbol for gutter icon when #errorLens.gutterIconSet# is emoji . |
errorGutterIconPath |
"" |
Absolute path to error gutter icon. |
warningGutterIconPath |
"" |
Absolute path to warning gutter icon. |
infoGutterIconPath |
"" |
Absolute path to info gutter icon. |
hintGutterIconPath |
"" |
Absolute path to hint gutter icon. |
errorGutterIconColor |
"#e45454" |
Error color of simple gutter icons (shapes and letters). |
warningGutterIconColor |
"#ff942f" |
Warning color of simple gutter icons (shapes and letters). |
infoGutterIconColor |
"#00b7e4" |
Info color of simple gutter icons (shapes and letters). |
hintGutterIconColor |
"#2faf64" |
Hint color of simple gutter icons (shapes and letters). |
removeLinebreaks |
true |
When enabled - replaces line breaks in inline diagnostic message with whitespaces. |
replaceLinebreaksSymbol |
"⏎" |
Symbol to replace linebreaks. Requires enabling #errorLens.removeLinebreaks# . |
scrollbarHackEnabled |
false |
When enabled - prevents showing horizontal scrollbar in editor (caused by inline decorations). Also prevents mouse hover at inline message. |
ignoreUntitled |
false |
Controls whether to run on untitled (unsaved) files. |
codeLensEnabled |
false |
Controls whether to show the Error Lens as a Code Lens above the code. |
codeLensLength |
{"min":0, "max":200} |
Enforce minimum length of the first code lens item and max length of subsequent items. |
codeLensTemplate |
"$severity $message" |
Template used for all messages appearing in the #errorLens.codeLensEnabled# . Whitespace between items is important. List of variables: - $message - diagnostic message text - $count - Number of diagnostics on the line - $severity - Severity prefix taken from #errorLens.severityText# - $source - Source of diagnostic e.g. "eslint" - $code - Code of the diagnostic |
codeLensOnClick |
"showQuickFix" |
Controls what do on clicking the #errorLens.codeLensEnabled# . |