WorkspaceSymbolProvider<T extends SymbolInformation> constructor

WorkspaceSymbolProvider<T extends SymbolInformation>({
  1. FutureOr<List<SymbolInformation>> provideWorkspaceSymbols(
    1. String,
    2. CancellationToken
    )?,
  2. FutureOr<SymbolInformation> resolveWorkspaceSymbol(
    1. SymbolInformation,
    2. CancellationToken
    )?,
})

Implementation

factory WorkspaceSymbolProvider({
  _i4.FutureOr<_i2.List<_i3.SymbolInformation>> Function(
    _i2.String,
    _i3.CancellationToken,
  )? provideWorkspaceSymbols,
  _i4.FutureOr<_i3.SymbolInformation> Function(
    _i3.SymbolInformation,
    _i3.CancellationToken,
  )? resolveWorkspaceSymbol,
}) =>
    WorkspaceSymbolProvider._(
      provideWorkspaceSymbols: provideWorkspaceSymbols == null
          ? null
          : _i5.allowInterop((
              p0,
              p1,
            ) =>
              _i6.Promise.futureOr(() => provideWorkspaceSymbols(
                    p0,
                    p1,
                  ))),
      resolveWorkspaceSymbol: resolveWorkspaceSymbol == null
          ? null
          : _i5.allowInterop((
              p0,
              p1,
            ) =>
              _i6.Promise.futureOr(() => resolveWorkspaceSymbol(
                    p0,
                    p1,
                  ))),
    );