LinkedEditingRanges

Represents a list of ranges that can be edited together along with a word pattern to describe valid range contents.

Online Documentation

Constructors

Link copied to clipboard
constructor(ranges: ReadonlyArray<Range>, wordPattern: RegExp = definedExternally)

Create a new linked editing ranges object.

Properties

Link copied to clipboard
external val ranges: ReadonlyArray<Range>

A list of ranges that can be edited together. The ranges must have identical length and text content. The ranges cannot overlap.

Link copied to clipboard
external val wordPattern: RegExp?

An optional word pattern that describes valid contents for the given ranges. If no pattern is provided, the language configuration's word pattern will be used.