OptionalafterIf set, text will be injected in the view after the range.
OptionalafterIf set, the decoration will be rendered after the text with this CSS class name.
OptionalbeforeIf set, text will be injected in the view before the range.
OptionalbeforeIf set, the decoration will be rendered before the text with this CSS class name.
OptionalblockOptionalblockOptionalblockIndicates if this block should be rendered after the last line. In this case, the range must be empty and set to the last line.
OptionalblockOptionalclassCSS class name describing the decoration.
OptionalfirstIf 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.
OptionalfontFont family
OptionalfontFont size
OptionalfontFont style
OptionalfontFont weight
OptionalglyphIf set and the decoration has glyphMarginClassName set, render this decoration with the specified IModelDecorationGlyphMarginOptions in the glyph margin.
OptionalglyphIf set, the decoration will be rendered in the glyph margin with this CSS class name.
OptionalglyphMessage to be rendered when hovering over the glyph margin decoration.
OptionalhoverArray of MarkdownString to render as the decoration message.
OptionalinlineIf 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.
OptionalinlineIf there is an inlineClassName which affects letter spacing.
OptionalisShould the decoration expand to encompass a whole line.
OptionallineIf set, the decoration will override the line height of the lines it spans. Maximum value is 300px.
OptionallineIf set, the decoration will be rendered on the line number.
OptionallineArray of MarkdownString to render as the line number message.
OptionallinesIf set, the decoration will be rendered in the lines decorations with this CSS class name.
OptionallinesControls the tooltip text of the line decoration.
OptionalmarginIf set, the decoration will be rendered in the margin (covering its full width) with this CSS class name.
OptionalminimapIf set, render this decoration in the minimap.
OptionaloverviewIf set, render this decoration in the overview ruler.
OptionalshouldIndicates whether the decoration should span across the entire line when it continues onto the next line.
OptionalshowAlways render the decoration (even when the range it encompasses is collapsed).
OptionalstickinessCustomize the growing behavior of the decoration when typing at the edges of the decoration. Defaults to TrackedRangeStickiness.AlwaysGrowsWhenTypingAtEdges
OptionaltextThe text direction of the decoration.
OptionalzSpecifies 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.