registerInlayHintsProvider method

Disposable registerInlayHintsProvider(
  1. Object selector,
  2. InlayHintsProvider<InlayHint> provider
)

Register a inlay hints provider.

Multiple providers can be registered for a language. In that case providers are asked in parallel and the results are merged. A failing provider (rejected promise or exception) will not cause a failure of the whole operation.

Implementation

_i3.Disposable registerInlayHintsProvider(
  _i2.Object selector,
  _i3.InlayHintsProvider<_i3.InlayHint> provider,
) =>
    _i4.callMethod(
      this,
      'registerInlayHintsProvider',
      [
        selector,
        provider,
      ],
    );