Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • CustomEditorsExtImpl

Implements

Index

Constructors

Properties

documents: CustomDocumentStore = ...
editorProviders: EditorProviderStore = ...

Methods

  • $createCustomDocument(resource: UriComponents, viewType: string, openContext: CustomDocumentOpenContext, cancellation: CancellationToken): Promise<{ editable: boolean }>
  • $disposeCustomDocument(resource: UriComponents, viewType: string): Promise<void>
  • $disposeEdits(resourceComponents: UriComponents, viewType: string, editIds: number[]): void
  • $onMoveCustomEditor(handle: string, newResourceComponents: UriComponents, viewType: string): Promise<void>
  • $onSave(resourceComponents: UriComponents, viewType: string, cancellation: CancellationToken): Promise<void>
  • $onSaveAs(resourceComponents: UriComponents, viewType: string, targetResource: UriComponents, cancellation: CancellationToken): Promise<void>
  • $redo(resourceComponents: UriComponents, viewType: string, editId: number, isDirty: boolean): Promise<void>
  • $resolveWebviewEditor<T>(resource: UriComponents, handler: string, viewType: string, title: string, widgetOpenerOptions: undefined | T, options: WebviewPanelOptions & WebviewOptions, cancellation: CancellationToken): Promise<void>
  • $revert(resourceComponents: UriComponents, viewType: string, cancellation: CancellationToken): Promise<void>
  • $undo(resourceComponents: UriComponents, viewType: string, editId: number, isDirty: boolean): Promise<void>
  • getCustomDocumentEntry(viewType: string, resource: UriComponents): CustomDocumentStoreEntry
  • getCustomEditorProvider(viewType: string): CustomEditorProvider<CustomDocument>
  • registerCustomEditorProvider(viewType: string, provider: CustomReadonlyEditorProvider<CustomDocument> | CustomTextEditorProvider, options: { supportsMultipleEditorsPerDocument?: boolean; webviewOptions?: WebviewPanelOptions }, plugin: Plugin): Disposable
  • Parameters

    • viewType: string
    • provider: CustomReadonlyEditorProvider<CustomDocument> | CustomTextEditorProvider
    • options: { supportsMultipleEditorsPerDocument?: boolean; webviewOptions?: WebviewPanelOptions }
      • Optional supportsMultipleEditorsPerDocument?: boolean
      • Optional webviewOptions?: WebviewPanelOptions
    • plugin: Plugin

    Returns Disposable

  • supportEditing(provider: CustomReadonlyEditorProvider<CustomDocument> | CustomTextEditorProvider | CustomEditorProvider<CustomDocument>): provider is CustomEditorProvider<CustomDocument>