Optional
afterIf set, text will be injected in the view after the range.
Optional
afterIf set, the decoration will be rendered after the text with this CSS class name.
Optional
beforeIf set, text will be injected in the view before the range.
Optional
beforeIf set, the decoration will be rendered before the text with this CSS class name.
Optional
blockOptional
blockOptional
blockIndicates if this block should be rendered after the last line. In this case, the range must be empty and set to the last line.
Optional
blockOptional
classCSS class name describing the decoration.
Optional
firstIf set, the decoration will be rendered in the lines decorations with this CSS class name, but only for the first line in case of line wrapping.
Optional
glyphIf set and the decoration has glyphMarginClassName set, render this decoration with the specified IModelDecorationGlyphMarginOptions in the glyph margin.
Optional
glyphIf set, the decoration will be rendered in the glyph margin with this CSS class name.
Optional
glyphMessage to be rendered when hovering over the glyph margin decoration.
Optional
hoverArray of MarkdownString to render as the decoration message.
Optional
inlineIf set, the decoration will be rendered inline with the text with this CSS class name.
Please use this only for CSS rules that must impact the text. For example, use className
to have a background color decoration.
Optional
inlineIf there is an inlineClassName
which affects letter spacing.
Optional
isShould the decoration expand to encompass a whole line.
Optional
lineIf set, the decoration will be rendered on the line number.
Optional
lineArray of MarkdownString to render as the line number message.
Optional
linesIf set, the decoration will be rendered in the lines decorations with this CSS class name.
Optional
linesControls the tooltip text of the line decoration.
Optional
marginIf set, the decoration will be rendered in the margin (covering its full width) with this CSS class name.
Optional
minimapIf set, render this decoration in the minimap.
Optional
overviewIf set, render this decoration in the overview ruler.
Optional
shouldIndicates whether the decoration should span across the entire line when it continues onto the next line.
Optional
showAlways render the decoration (even when the range it encompasses is collapsed).
Optional
stickinessCustomize the growing behavior of the decoration when typing at the edges of the decoration. Defaults to TrackedRangeStickiness.AlwaysGrowsWhenTypingAtEdges
Optional
zSpecifies the stack order of a decoration. A decoration with greater stack order is always in front of a decoration with a lower stack order when the decorations are on the same line.
Options for a model decoration.