Skip to content

Latest commit

 

History

History
57 lines (25 loc) · 885 Bytes

textedit.md

File metadata and controls

57 lines (25 loc) · 885 Bytes
description
Represents an edit that is to be applied to a document.

TextEdit

A text edit object represents a change that should be made to an existing document in an editor object.

Class Methods

delete(range: Range): TextEdit
insert(position: Position, newText: string): TextEdit
replace(range: Range, newText: string): TextEdit

Constructor

new TextEdit(range: Range, newText: string: TextEdit)

Properties

newText: string
range: Range

Example