registerCustomEditorProvider
fun registerCustomEditorProvider(viewType: String, provider: JsAny, options: window.RegisterCustomEditorProviderOptions = definedExternally): Disposable(source)
Register a provider for custom editors for the viewType contributed by the customEditors extension point.
When a custom editor is opened, an onCustomEditor:viewType activation event is fired. Your extension must register a {@linkcode CustomTextEditorProvider}, {@linkcode CustomReadonlyEditorProvider}, {@linkcode CustomEditorProvider}for viewType as part of activation.
Parameters
viewType
Unique identifier for the custom editor provider. This should match the viewType from the customEditors contribution point.
provider
Provider that resolves custom editors.
options
Options for the provider.