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.
Optional
decorations: IModelDeltaDecoration[]Get the computed diff information.
Type the getModel() of IEditor.
Get the modified
editor.
Get the original
editor.
Returns all actions associated with this editor.
Given a position, returns a column number that takes tab-widths into account.
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.
Optional
dimension: IDimensionOptional
postponeRendering: booleanRestores the view state of the editor from a serializable object generated by saveViewState
.
Scroll vertically as necessary and reveal a line.
Optional
scrollType: ScrollTypeScroll vertically as necessary and reveal a line centered vertically.
Optional
scrollType: ScrollTypeScroll vertically as necessary and reveal a line centered vertically only if it lies outside the viewport.
Optional
scrollType: ScrollTypeScroll vertically as necessary and reveal a line close to the top of the viewport, optimized for viewing a code definition.
Optional
scrollType: ScrollTypeScroll vertically as necessary and reveal lines.
Optional
scrollType: ScrollTypeScroll vertically as necessary and reveal lines centered vertically.
Optional
scrollType: ScrollTypeScroll vertically as necessary and reveal lines centered vertically only if it lies outside the viewport.
Optional
scrollType: ScrollTypeScroll vertically as necessary and reveal lines close to the top of the viewport, optimized for viewing a code definition.
Optional
scrollType: ScrollTypeScroll vertically or horizontally as necessary and reveal a position.
Optional
scrollType: ScrollTypeScroll vertically or horizontally as necessary and reveal a position centered vertically.
Optional
scrollType: ScrollTypeScroll vertically or horizontally as necessary and reveal a position centered vertically only if it lies outside the viewport.
Optional
scrollType: ScrollTypeScroll vertically or horizontally as necessary and reveal a position close to the top of the viewport, optimized for viewing a code definition.
Optional
scrollType: ScrollTypeScroll vertically or horizontally as necessary and reveal a range.
Optional
scrollType: ScrollTypeScroll vertically or horizontally as necessary and reveal a range at the top of the viewport.
Optional
scrollType: ScrollTypeScroll vertically or horizontally as necessary and reveal a range centered vertically.
Optional
scrollType: ScrollTypeScroll vertically or horizontally as necessary and reveal a range centered vertically only if it lies outside the viewport.
Optional
scrollType: ScrollTypeScroll vertically or horizontally as necessary and reveal a range close to the top of the viewport, optimized for viewing a code definition.
Optional
scrollType: 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.
Optional
scrollType: 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
Optional
source: stringSource of the call that caused the position
Set the primary selection of the editor. This will remove any secondary cursors.
The new selection
Optional
source: stringSource of the call that caused the selection
Set the primary selection of the editor. This will remove any secondary cursors.
The new selection
Optional
source: stringSource of the call that caused the selection
Set the primary selection of the editor. This will remove any secondary cursors.
The new selection
Optional
source: stringSource of the call that caused the selection
Set the primary selection of the editor. This will remove any secondary cursors.
The new selection
Optional
source: stringSource 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
Optional
source: stringSource of the call that caused the selection
Update the editor's options after the editor has been created.
Readonly
onAn event emitted when the diff model is changed (i.e. the diff editor shows new content).
Readonly
onAn event emitted when the diff information computed by this diff editor has been updated.
An event emitted when the editor has been disposed.
A rich diff editor.