searchSymbols method
Language-aware declaration search: workspaceSymbols filtered by an
optional symbol kind name (e.g. class, method, function).
Implementation
Future<List<WorkspaceSymbol>> searchSymbols(
String query, {
String? kind,
String? glob,
}) async {
final all = await workspaceSymbols(query, glob: glob);
if (kind == null) return all;
final wanted = _kindByName[kind.toLowerCase()];
if (wanted == null) return all;
return all.where((s) => s.kind == wanted).toList();
}