Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • DocumentsExtImpl

Implements

Index

Constructors

Properties

_onDidAddDocument: Emitter<TextDocument> = ...
_onDidChangeDocument: Emitter<TextDocumentChangeEvent> = ...
_onDidRemoveDocument: Emitter<TextDocument> = ...
_onDidSaveTextDocument: Emitter<TextDocument> = ...
_onWillSaveTextDocument: Emitter<TextDocumentWillSaveEvent> = ...
loadingDocuments: Map<string, Promise<undefined | DocumentDataExt>> = ...
onDidAddDocument: Event<TextDocument> = ...
onDidChangeDocument: Event<TextDocumentChangeEvent> = ...
onDidRemoveDocument: Event<TextDocument> = ...
onDidSaveTextDocument: Event<TextDocument> = ...
onWillSaveTextDocument: Event<TextDocumentWillSaveEvent> = ...
toDispose: DisposableCollection = ...

Methods

  • $acceptDirtyStateChanged(strUrl: UriComponents, isDirty: boolean): void
  • $acceptModelChanged(strUrl: UriComponents, e: ModelChangedEvent, isDirty: boolean): void
  • $acceptModelModeChanged(startUrl: UriComponents, oldModeId: string, newModeId: string): void
  • $acceptModelSaved(strUrl: UriComponents): void
  • $acceptModelWillSave(strUrl: UriComponents, reason: TextDocumentSaveReason, saveTimeout: number): Promise<SingleEditOperation[]>
  • createDocumentData(options?: { content?: string; language?: string }): Promise<URI>
  • fireTextDocumentWillSaveEvent(__namedParameters: { document: TextDocument; reason: TextDocumentSaveReason; accept: any; fireEvent: any }): Promise<void>
  • getDocument(resource: Uri): TextDocument
  • loadDocument(uri: URI, options?: TextDocumentShowOptions): Promise<undefined | DocumentDataExt>
  • setWordDefinitionFor(modeId: string, wordDefinition: null | RegExp): void
  • showDocument(uri: URI, options?: TextDocumentShowOptions): Promise<undefined | DocumentDataExt>
  • Retrieve document and open it in the editor if need.

    Parameters

    • uri: URI

      path to the resource

    • Optional options: TextDocumentShowOptions

      if options exists, resource will be opened in editor, otherwise only document object is returned

    Returns Promise<undefined | DocumentDataExt>