Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CodeEditor

A text editor for code files (as opposed to a rich text editor for documents or other kinds of file format editors).

Hierarchy

  • CodeEditor

Index

Properties

Readonly document

document: TextDocument

The text document that is open in this editor. The document remains the same for the entire lifetime of this editor.

Readonly selection

selection: Selection | null

The primary selection in this text editor. This is equivalent to CodeEditor.selections[0] || null.

todo

Make this non-readonly.

Readonly selections

selections: Selection[]

The selections in this text editor. A text editor has zero or more selections. The primary selection ({@link CodeEditor#selection}), if any selections exist, is always at index 0.

todo

Make this non-readonly.

Readonly selectionsChanges

selectionsChanges: Subscribable<Selection[]>

An event that is fired when the selections in this text editor change. The primary selection ({@link CodeEditor#selection}), if any selections exist, is always at index 0 of the emitted array.

Readonly type

type: "CodeEditor"

The type tag for this kind of ViewComponent.

Methods

setDecorations

setStatusBarItem

Generated using TypeDoc