Liking cljdoc? Tell your friends :D

dots.vscode.text-edit

A text edit represents edits that should be applied to a document.

A text edit represents edits that should be applied
to a document.
raw docstring

deletecljs

(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.
sourceraw docstring

insertcljs

(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.
sourceraw docstring

new-eolcljs

(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`
sourceraw docstring

new-textcljs

(new-text text-edit)

The string this edit will insert.

Returns: string

The string this edit will insert.

**Returns:** `string`
sourceraw docstring

rangecljs

(range text-edit)

The range this edit applies to.

Returns: Range

The range this edit applies to.

**Returns:** `Range`
sourceraw docstring

replacecljs

(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.
sourceraw docstring

set-end-of-linecljs

(set-end-of-line eol)

Utility to create an eol-edit.

Parameters:

  • eol: EndOfLine - An eol-sequence

Returns: 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.
sourceraw docstring

set-new-eol!cljs

(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.
sourceraw docstring

set-new-text!cljs

(set-new-text! text-edit value)

The string this edit will insert.

The string this edit will insert.
sourceraw docstring

set-range!cljs

(set-range! text-edit value)

The range this edit applies to.

The range this edit applies to.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close