An editor model.

interface IModel {
    isDisposed: boolean;
    mimeType: string;
    mimeTypeChanged: ISignal<CodeEditor.IModel, IChangedArgs<string, string, string>>;
    selections: IObservableMap<ITextSelection[]>;
    sharedModel: ISharedText;
    dispose(): void;


Implemented by


isDisposed: boolean

Test whether the object has been disposed.


This property is always safe to access.

mimeType: string

A mime type of the model.


It is never null, the default mime type is text/plain.

mimeTypeChanged: ISignal<CodeEditor.IModel, IChangedArgs<string, string, string>>

A signal emitted when a property changes.

The currently selected code.

sharedModel: ISharedText

The shared model for the cell editor.


  • Dispose of the resources held by the object.


    If the object's dispose method is called more than once, all calls made after the first will be a no-op.

    Undefined Behavior

    It is undefined behavior to use any functionality of the object after it has been disposed unless otherwise explicitly noted.

    Returns void