A text edit represents edits that should be applied to a document.
A text edit represents edits that should be applied to a document.
(delete range)Utility to create a delete edit.
Parameters:
range: Range - A range.Returns: TextEdit - A new text edit object.
Utility to create a delete edit. **Parameters:** - `range`: `Range` - A range. **Returns:** `TextEdit` - A new text edit object.
(insert position new-text)Utility to create an insert edit.
Parameters:
position: Position - A position, will become an empty range.new-text: string - A string.Returns: TextEdit - A new text edit object.
Utility to create an insert edit. **Parameters:** - `position`: `Position` - A position, will become an empty range. - `new-text`: `string` - A string. **Returns:** `TextEdit` - A new text edit object.
(new-eol text-edit)The eol-sequence used in the document.
Note that the eol-sequence will be applied to the whole document.
Returns: EndOfLine | undefined
The eol-sequence used in the document. *Note* that the eol-sequence will be applied to the whole document. **Returns:** `EndOfLine | undefined`
(new-text text-edit)The string this edit will insert.
Returns: string
The string this edit will insert. **Returns:** `string`
(range text-edit)The range this edit applies to.
Returns: Range
The range this edit applies to. **Returns:** `Range`
(replace range new-text)Utility to create a replace edit.
Parameters:
range: Range - A range.new-text: string - A string.Returns: TextEdit - A new text edit object.
Utility to create a replace edit. **Parameters:** - `range`: `Range` - A range. - `new-text`: `string` - A string. **Returns:** `TextEdit` - A new text edit object.
(set-end-of-line eol)Utility to create an eol-edit.
Parameters:
eol: EndOfLine - An eol-sequenceReturns: TextEdit - A new text edit object.
Utility to create an eol-edit. **Parameters:** - `eol`: `EndOfLine` - An eol-sequence **Returns:** `TextEdit` - A new text edit object.
(set-new-eol! text-edit value)The eol-sequence used in the document.
Note that the eol-sequence will be applied to the whole document.
The eol-sequence used in the document. *Note* that the eol-sequence will be applied to the whole document.
(set-new-text! text-edit value)The string this edit will insert.
The string this edit will insert.
(set-range! text-edit value)The range this edit applies to.
The range this edit applies to.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |