registerDocumentSymbolProvider method

Disposable registerDocumentSymbolProvider(
  1. Object selector,
  2. DocumentSymbolProvider provider, [
  3. DocumentSymbolProviderMetadata? metaData
])

Register a document symbol 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 registerDocumentSymbolProvider(
  _i2.Object selector,
  _i3.DocumentSymbolProvider provider, [
  _i3.DocumentSymbolProviderMetadata? metaData,
]) =>
    _i4.callMethod(
      this,
      'registerDocumentSymbolProvider',
      [
        selector,
        provider,
        metaData ?? _i5.undefined,
      ],
    );