setDecorations

abstract fun setDecorations(decorationType: TextEditorDecorationType, rangesOrOptions: ReadonlyArray<Range>)(source)

Adds a set of decorations to the text editor. If a set of decorations already exists with the given decoration type, they will be replaced. If rangesOrOptions is empty, the existing decorations with the given decoration type will be removed.

Parameters

decorationType

A decoration type.

rangesOrOptions

Either ranges or more detailed options.

Online Documentation

See also

createTextEditorDecorationType

abstract fun setDecorations(decorationType: TextEditorDecorationType, rangesOrOptions: ReadonlyArray<DecorationOptions>)(source)