Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CustomEditorsMainImpl

Hierarchy

  • CustomEditorsMainImpl

Implements

Index

Constructors

constructor

Properties

Protected Readonly customEditorRegistry

customEditorRegistry: PluginCustomEditorRegistry

Protected Readonly customEditorService

customEditorService: CustomEditorService

Protected Readonly editorPreferences

editorPreferences: PreferenceProxy<EditorConfiguration>

Private Readonly editorProviders

editorProviders: Map<string, Disposable> = ...

Protected Readonly fileService

fileService: FileService

Protected Readonly labelProvider

labelProvider: DefaultUriLabelProviderContribution

Protected Readonly pluginService

pluginService: HostedPluginSupport

Private Readonly proxy

Protected Readonly shell

shell: ApplicationShell

Protected Readonly textModelService

textModelService: EditorModelService

Protected Readonly undoRedoService

undoRedoService: UndoRedoService

Readonly webviewsMain

webviewsMain: WebviewsMainImpl

Protected Readonly widgetManager

widgetManager: WidgetManager

Methods

$createCustomEditorPanel

  • $createCustomEditorPanel(panelId: string, title: string, viewColumn: ViewColumn, options: WebviewPanelOptions & WebviewOptions): Promise<void>

$onContentChange

  • $onContentChange(resourceComponents: UriComponents, viewType: string): Promise<void>

$onDidEdit

  • $onDidEdit(resourceComponents: UriComponents, viewType: string, editId: number, label: undefined | string): Promise<void>

$registerCustomEditorProvider

  • $registerCustomEditorProvider(viewType: string, options: WebviewPanelOptions, supportsMultipleEditorsPerDocument: boolean): void

$registerTextEditorProvider

$unregisterEditorProvider

  • $unregisterEditorProvider(viewType: string): void

dispose

  • dispose(): void

Protected getCustomEditorModel

Protected getOrCreateCustomEditorModel

  • getOrCreateCustomEditorModel(modelType: CustomEditorModelType, resource: default, viewType: string, cancellationToken: CancellationToken): Promise<Reference<CustomEditorModel>>

Protected registerEditorProvider

  • registerEditorProvider(modelType: CustomEditorModelType, viewType: string, options: WebviewPanelOptions, capabilities: CustomTextEditorCapabilities, supportsMultipleEditorsPerDocument: boolean): Promise<void>