resolveCustomEditor

abstract fun resolveCustomEditor(document: T, webviewPanel: WebviewPanel, token: CancellationToken): PromiseLike<Void?>?(source)

Resolve a custom editor for a given resource.

This is called whenever the user opens a new editor for this CustomEditorProvider.

Parameters

document

Document for the resource being resolved.

webviewPanel

The webview panel used to display the editor UI for this resource.

During resolve, the provider must fill in the initial html for the content webview panel and hook up all the event listeners on it that it is interested in. The provider can also hold onto the WebviewPanel to use later for example in a command. See {@linkcode WebviewPanel} for additional details.

token

A cancellation token that indicates the result is no longer needed.