registerCodeLensProvider method

Disposable registerCodeLensProvider(
  1. Object selector,
  2. CodeLensProvider<CodeLens> provider
)

Register a code lens 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 registerCodeLensProvider(
  _i2.Object selector,
  _i3.CodeLensProvider<_i3.CodeLens> provider,
) =>
    _i4.callMethod(
      this,
      'registerCodeLensProvider',
      [
        selector,
        provider,
      ],
    );