WorkspaceSymbolProvider<T extends SymbolInformation> constructor
WorkspaceSymbolProvider<T extends SymbolInformation> ({
- FutureOr<
List< provideWorkspaceSymbols()?,SymbolInformation> > - FutureOr<
SymbolInformation> resolveWorkspaceSymbol()?,
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,
))),
);