Create a selection from four coordinates.
A zero-based line value.
A zero-based character value.
A zero-based line value.
A zero-based character value.
ReadonlyactiveThe position of the cursor. This position might be before or after anchor.
ReadonlyanchorThe position at which the selection starts. This position might be before or after active.
ReadonlyendThe end position. It is after or equal to start.
true if start and end are equal.
Readonlyistrue if start.line and end.line are equal.
ReadonlystartThe start position. It is before or equal to end.
Derived a new range from this range.
Optionalstart: PositionA position that should be used as start. The default value is the current start.
Optionalend: PositionA position that should be used as end. The default value is the current end.
A range derived from this range with the given start and end position.
If start and end are not different this range will be returned.
Derived a new range from this range.
An object that describes a change to this range.
Optionalend?: PositionNew end position, defaults to current end
Optionalstart?: PositionNew start position, defaults to current start
A range that reflects the given change. Will return this range if the change
is not changing anything.
Represents a text selection in an editor.