A text edit represents edits that should be applied to a document.
Static methods
staticdelete(range:Range):TextEdit
Utility to create a delete edit.
Parameters:
range | A range. |
---|
Returns:
A new text edit object.
staticinsert(position:Position, newText:String):TextEdit
Utility to create an insert edit.
Parameters:
position | A position, will become an empty range. |
---|---|
newText | A string. |
Returns:
A new text edit object.
staticreplace(range:Range, newText:String):TextEdit
Utility to create a replace edit.
Parameters:
range | A range. |
---|---|
newText | A string. |
Returns:
A new text edit object.
staticsetEndOfLine(eol:EndOfLine):TextEdit
Utility to create an eol-edit.
Parameters:
eol | An eol-sequence |
---|
Returns:
A new text edit object.