CustomReadonlyEditorProvider

Provider for readonly custom editors that use a custom document model.

Custom editors use {@linkcode CustomDocument} as their document model instead of a {@linkcode TextDocument}.

You should use this type of custom editor when dealing with binary files or more complex scenarios. For simple text based documents, use {@linkcode CustomTextEditorProvider} instead.

Parameters

T

Type of the custom document returned by this provider.

Online Documentation

Inheritors

Functions

Link copied to clipboard

Create a new document for a given resource.

Link copied to clipboard
abstract fun resolveCustomEditor(document: T, webviewPanel: WebviewPanel, token: CancellationToken): PromiseLike<Void?>?

Resolve a custom editor for a given resource.