range property

Object get range

A range or a insert and replace range selecting the text that should be replaced by this completion item.

When omitted, the range of the {@link TextDocument.getWordRangeAtPosition current word} is used as replace-range and as insert-range the start of the {@link TextDocument.getWordRangeAtPosition current word} to the current position is used.

Note 1: A range must be a {@link Range.isSingleLine single line} and it must {@link Range.contains contain} the position at which completion has been {@link CompletionItemProvider.provideCompletionItems requested}. Note 2: A insert range must be a prefix of a replace range, that means it must be contained and starting at the same position.

Implementation

_i2.Object get range => _i5.getProperty(
      this,
      'range',
    );
set range (Object value)

Implementation

set range(_i2.Object value) {
  _i5.setProperty(
    this,
    'range',
    value,
  );
}