An event emitted when the editor has been disposed.
An event emitted when the diff information computed by this diff editor has been updated.
Dispose the editor.
Brings browser focus to the editor text
Get information based on computed diff about a line number from the modified model. If the diff computation is not finished or the model is missing, will return null.
Get information based on computed diff about a line number from the original model. If the diff computation is not finished or the model is missing, will return null.
Get the editor type. Please see EditorType
.
This is to avoid an instanceof check
Get a unique id for this editor instance.
Get the computed diff information.
Type the getModel() of IEditor.
Get the modified
editor.
Get the original
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.
Restores the view state of the editor from a serializable object generated by saveViewState
.
Scroll vertically as necessary and reveal a line.
Scroll vertically as necessary and reveal a line centered vertically.
Scroll vertically as necessary and reveal a line centered vertically only if it lies outside the viewport.
Scroll vertically as necessary and reveal a line close to the top of the viewport, optimized for viewing a code definition.
Scroll vertically as necessary and reveal lines.
Scroll vertically as necessary and reveal lines centered vertically.
Scroll vertically as necessary and reveal lines centered vertically only if it lies outside the viewport.
Scroll vertically as necessary and reveal lines close to the top of the viewport, optimized for viewing a code definition.
Scroll vertically or horizontally as necessary and reveal a position.
Scroll vertically or horizontally as necessary and reveal a position centered vertically.
Scroll vertically or horizontally as necessary and reveal a position centered vertically only if it lies outside the viewport.
Scroll vertically or horizontally as necessary and reveal a position close to the top of the viewport, optimized for viewing a code definition.
Scroll vertically or horizontally as necessary and reveal a range.
Scroll vertically or horizontally as necessary and reveal a range at the top of the viewport.
Scroll vertically or horizontally as necessary and reveal a range centered vertically.
Scroll vertically or horizontally as necessary and reveal a range centered vertically only if it lies outside the viewport.
Scroll vertically or horizontally as necessary and reveal a range close to the top of the viewport, optimized for viewing a code definition.
Scroll 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.
Saves 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
Set the primary selection of the editor. This will remove any secondary cursors.
The new selection
Set the primary selection of the editor. This will remove any secondary cursors.
The new selection
Set the primary selection of the editor. This will remove any secondary cursors.
The new selection
Set the primary selection of the editor. This will remove any secondary cursors.
The new selection
Set the selections for all the cursors of the editor. Cursors will be removed or added, as necessary.
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.
Generated using TypeDoc
A rich diff editor.