Implements

  • IResolvedTextEditorModel
  • TextEditorDocument

Constructors

Properties

_dirty: boolean = false
_languageId: undefined | string
_valid: boolean = false

Use valid to access it. Use setValid to mutate it.

bufferSavedVersionId: number
contentChanges: MonacoTextDocumentContentChange[] = []
contentEncoding: undefined | string
editorPreferences?: EditorPreferences
ignoreContentChanges: boolean = false
ignoreDirtyEdits: boolean = false
lineNumbersMinChars: number = 3
logger?: ILogger
model: ITextModel
onDidChangeContent: Event<MonacoModelContentChangedEvent> = ...
onDidChangeContentEmitter: Emitter<MonacoModelContentChangedEvent> = ...
onDidChangeEncoding: Event<string> = ...
onDidChangeEncodingEmitter: Emitter<string> = ...
onDidChangeReadOnly: Event<boolean | MarkdownString> = ...
onDidChangeValid: Event<void> = ...
onDidChangeValidEmitter: Emitter<void> = ...
onDidSaveModel: Event<ITextModel> = ...
onDidSaveModelEmitter: Emitter<ITextModel> = ...
onDirtyChangedEmitter: Emitter<void> = ...
onWillSaveLoopTimeOut: 1500 = 1500
onWillSaveModel: Event<WillSaveMonacoModelEvent> = ...
onWillSaveModelEmitter: Emitter<WillSaveMonacoModelEvent> = ...
pendingOperation: Promise<void> = ...
preferredEncoding: undefined | string
resolveModel: Promise<void>
resource: Resource
resourceVersion: undefined | ResourceVersion
saveCancellationTokenSource: CancellationTokenSource = ...
suppressOpenEditorWhenDirty: boolean = false
syncCancellationTokenSource: CancellationTokenSource = ...
toDispose: DisposableCollection = ...
toDisposeOnAutoSave: DisposableCollection = ...

Accessors

Methods

  • Parameters

    • reason: TextDocumentSaveReason
    • token: CancellationToken
    • Optional overwriteEncoding: boolean
    • Optional options: SaveOptions

    Returns Promise<void>

  • Find all matches in an editor for the given options.

    Parameters

    • options: FindMatchesOptions

      the options for finding matches.

    Returns FindMatch[]

    the list of matches.

  • Parameters

    • reason: TextDocumentSaveReason
    • token: CancellationToken = ...
    • Optional overwriteEncoding: boolean
    • Optional options: SaveOptions

    Returns Promise<void>