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.
Inheritors
Functions
Link copied to clipboard
abstract fun openCustomDocument(uri: Uri, openContext: CustomDocumentOpenContext, token: CancellationToken): PromiseResult<T>
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.