TextEditor
Represents an editor that is attached to a document.
Types
Properties
The document associated with this text editor. The document will be the same for the entire lifetime of this text editor.
Text editor options.
The selections in this text editor. The primary selection is always at index 0.
The column in which this editor shows. Will be undefined
in case this isn't one of the main editors, e.g. an embedded editor, or when the editor column is larger than three.
The current visible ranges in the editor (vertically). This accounts only for vertical scrolling, and not for horizontal scrolling.
Functions
Perform an edit on the document associated with this text editor.
Insert a snippet and put the editor into snippet mode. "Snippet mode" means the editor adds placeholders and additional cursors so that the user can complete or accept the snippet.
Scroll as indicated by revealType
in order to reveal the given range.
Adds a set of decorations to the text editor. If a set of decorations already exists with the given decoration type, they will be replaced. If rangesOrOptions
is empty, the existing decorations with the given decoration type will be removed.