CustomTextEditorProvider

Provider for text based custom editors.

Text based custom editors use a {@linkcode TextDocument} as their data model. This considerably simplifies implementing a custom editor as it allows the editor to handle many common operations such as undo and backup. The provider is responsible for synchronizing text changes between the webview and the TextDocument.

Online Documentation

Functions

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

Resolve a custom editor for a given text resource.