fn collect_pattern( workspace: &WorkspaceIndex, file: &str, pattern: &str, show_kind: bool, ) -> Vec<Entry>