Constructors

Properties

editorManager: EditorManager
editorPreferences: EditorPreferences
filePreferences: FileSystemPreferences
fileService: FileService
onDidChangeTextDocument: Event<MonacoModelContentChangedEvent> = ...
onDidChangeTextDocumentEmitter: Emitter<MonacoModelContentChangedEvent> = ...
onDidCloseTextDocument: Event<MonacoEditorModel> = ...
onDidCloseTextDocumentEmitter: Emitter<MonacoEditorModel> = ...
onDidOpenTextDocument: Event<MonacoEditorModel> = ...
onDidOpenTextDocumentEmitter: Emitter<MonacoEditorModel> = ...
onDidSaveTextDocument: Event<MonacoEditorModel> = ...
onDidSaveTextDocumentEmitter: Emitter<MonacoEditorModel> = ...
onWillSaveTextDocument: Event<WillSaveMonacoModelEvent> = ...
onWillSaveTextDocumentEmitter: Emitter<WillSaveMonacoModelEvent> = ...
problems: ProblemManager
ready: Promise<void> = ...
resolveReady: (() => void)

Type declaration

    • (): void
    • Returns void

saveService: SaveableService
suppressedOpenIfDirty: MonacoEditorModel[] = []
textModelService: MonacoTextModelService

Accessors

Methods

  • Applies given edits to the given model. The model is saved if no editors is opened for it.

    Parameters

    • model: MonacoEditorModel
    • editOperations: IIdentifiedSingleEditOperation[]
    • shouldSave: boolean = true

    Returns Promise<void>

  • Parameters

    • edits: ResourceTextEdit[]

    Returns Promise<{
        totalEdits: number;
        totalFiles: number;
    }>

  • Parameters

    • resourceEdit: ResourceTextEdit

    Returns TextEdit & {
        insertAsSnippet?: boolean;
    }