Create a collection of decorations. All decorations added through this collection will get the ownerId of the editor (meaning they will not show up in other editors). These decorations will be automatically cleared when the editor's model changes.
Optionaldecorations: IModelDeltaDecoration[]Dispose the editor.
Brings browser focus to the editor text
Get the editor type. Please see EditorType.
This is to avoid an instanceof check
Get a unique id for this editor instance.
Gets the current model attached to this editor.
Returns the primary position of the cursor.
Returns the primary selection of the editor.
Returns all the selections of the editor.
Returns all actions associated with this editor.
Given a position, returns a column number that takes tab-widths into account.
Returns true if the text inside this editor is focused (i.e. cursor is blinking).
Instructs the editor to remeasure its container. This method should be called when the container of the editor gets resized.
If a dimension is passed in, the passed in value will be used.
By default, this will also render the editor immediately. If you prefer to delay rendering to the next animation frame, use postponeRendering == true.
Optionaldimension: IDimensionOptionalpostponeRendering: booleanRestores the view state of the editor from a serializable object generated by saveViewState.
Scroll vertically as necessary and reveal a line.
OptionalscrollType: ScrollTypeScroll vertically as necessary and reveal a line centered vertically.
OptionalscrollType: ScrollTypeScroll vertically as necessary and reveal a line centered vertically only if it lies outside the viewport.
OptionalscrollType: ScrollTypeScroll vertically as necessary and reveal a line close to the top of the viewport, optimized for viewing a code definition.
OptionalscrollType: ScrollTypeScroll vertically as necessary and reveal lines.
OptionalscrollType: ScrollTypeScroll vertically as necessary and reveal lines centered vertically.
OptionalscrollType: ScrollTypeScroll vertically as necessary and reveal lines centered vertically only if it lies outside the viewport.
OptionalscrollType: ScrollTypeScroll vertically as necessary and reveal lines close to the top of the viewport, optimized for viewing a code definition.
OptionalscrollType: ScrollTypeScroll vertically or horizontally as necessary and reveal a position.
OptionalscrollType: ScrollTypeScroll vertically or horizontally as necessary and reveal a position centered vertically.
OptionalscrollType: ScrollTypeScroll vertically or horizontally as necessary and reveal a position centered vertically only if it lies outside the viewport.
OptionalscrollType: ScrollTypeScroll vertically or horizontally as necessary and reveal a position close to the top of the viewport, optimized for viewing a code definition.
OptionalscrollType: ScrollTypeScroll vertically or horizontally as necessary and reveal a range.
OptionalscrollType: ScrollTypeScroll vertically or horizontally as necessary and reveal a range at the top of the viewport.
OptionalscrollType: ScrollTypeScroll vertically or horizontally as necessary and reveal a range centered vertically.
OptionalscrollType: ScrollTypeScroll vertically or horizontally as necessary and reveal a range centered vertically only if it lies outside the viewport.
OptionalscrollType: ScrollTypeScroll vertically or horizontally as necessary and reveal a range close to the top of the viewport, optimized for viewing a code definition.
OptionalscrollType: ScrollTypeScroll vertically or horizontally as necessary and reveal a range close to the top of the viewport, optimized for viewing a code definition. Only if it lies outside the viewport.
OptionalscrollType: ScrollTypeSaves current view state of the editor in a serializable object.
Sets the current model attached to this editor. If the previous model was created by the editor via the value key in the options literal object, it will be destroyed. Otherwise, if the previous model was set via setModel, or the model key in the options literal object, the previous model will not be destroyed. It is safe to call setModel(null) to simply detach the current model from the editor.
Set the primary position of the cursor. This will remove any secondary cursors.
New primary cursor's position
Optionalsource: string
Source of the call that caused the position
Set the primary selection of the editor. This will remove any secondary cursors.
The new selection
Optionalsource: string
Source of the call that caused the selection
Set the primary selection of the editor. This will remove any secondary cursors.
The new selection
Optionalsource: string
Source of the call that caused the selection
Set the primary selection of the editor. This will remove any secondary cursors.
The new selection
Optionalsource: string
Source of the call that caused the selection
Set the primary selection of the editor. This will remove any secondary cursors.
The new selection
Optionalsource: string
Source of the call that caused the selection
Set the selections for all the cursors of the editor. Cursors will be removed or added, as necessary.
The new selection
Optionalsource: string
Source of the call that caused the selection
Directly trigger a handler or an editor action.
The source of the call.
The id of the handler or the id of a contribution.
Extra data to be sent to the handler.
Update the editor's options after the editor has been created.
An event emitted when the editor has been disposed.
An editor.