fn collect( workspace: &WorkspaceIndex, file: &str, patterns: &[String], show_kind: bool, ) -> Vec<Entry>