Properties
Protected _dirty
_dirty: boolean = false
Protected _languageId
_languageId: undefined | string
Protected _valid
_valid: boolean = false
autoSave
autoSave: "off" | "afterDelay" | "onFocusChange" | "onWindowChange" = 'afterDelay'
autoSaveDelay
autoSaveDelay: number = 500
Protected bufferSavedVersionId
bufferSavedVersionId: number
Protected Readonly contentChanges
contentChanges: TextDocumentContentChangeEvent[] = []
Private contentEncoding
contentEncoding: undefined | string
Protected Optional Readonly editorPreferences
editorPreferences?: EditorPreferences
Protected ignoreContentChanges
ignoreContentChanges: boolean = false
Protected ignoreDirtyEdits
ignoreDirtyEdits: boolean = false
lineNumbersMinChars
lineNumbersMinChars: number = 3
Protected Optional Readonly logger
logger?: ILogger
Protected model
model: ITextModel
Readonly onDidChangeContent
Protected Readonly onDidChangeContentEmitter
Readonly onDidChangeEncoding
onDidChangeEncoding: Event<string> = ...
Protected Readonly onDidChangeEncodingEmitter
onDidChangeEncodingEmitter: Emitter<string> = ...
Readonly onDidChangeValid
onDidChangeValid: Event<void> = ...
Protected Readonly onDidChangeValidEmitter
onDidChangeValidEmitter: Emitter<void> = ...
Readonly onDidSaveModel
onDidSaveModel: Event<ITextModel> = ...
Protected Readonly onDidSaveModelEmitter
onDidSaveModelEmitter: Emitter<ITextModel> = ...
Protected Readonly onDirtyChangedEmitter
onDirtyChangedEmitter: Emitter<void> = ...
Readonly onWillSaveLoopTimeOut
onWillSaveLoopTimeOut: 1500 = 1500
Protected Readonly onWillSaveModelEmitter
Protected pendingOperation
pendingOperation: Promise<void> = ...
Private preferredEncoding
preferredEncoding: undefined | string
Protected Readonly resolveModel
resolveModel: Promise<void>
Protected Readonly resource
resource: Resource
Protected resourceVersion
resourceVersion: undefined | ResourceVersion
Protected saveCancellationTokenSource
saveCancellationTokenSource: CancellationTokenSource = ...
suppressOpenEditorWhenDirty
suppressOpenEditorWhenDirty: boolean = false
Protected syncCancellationTokenSource
syncCancellationTokenSource: CancellationTokenSource = ...
Protected Readonly toDispose
toDispose: DisposableCollection = ...
Protected Readonly toDisposeOnAutoSave
toDisposeOnAutoSave: DisposableCollection = ...
Use
valid
to access it. UsesetValid
to mutate it.