registerCustomEditorProvider method

Disposable registerCustomEditorProvider(
  1. String viewType,
  2. Object provider, [
  3. IInline53? options
])

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.

Implementation

_i4.Disposable registerCustomEditorProvider(
  _i2.String viewType,
  _i2.Object provider, [
  _i6.IInline53? options,
]) =>
    _i3.callMethod(
      this,
      'registerCustomEditorProvider',
      [
        viewType,
        provider,
        options ?? _i5.undefined,
      ],
    );