public static IVsHierarchy FindProject(string fileName) { var itemId = VSConstants.VSITEMID_ROOT; return LoadedProjects.FirstOrDefault(x => GetItemFiles(x, itemId).Any(y => y == fileName)); }
private bool OverrideStatus(string fileName, HgFileStatus status) { if (NeedToSearchChildren(fileName, status)) { var project = VisualHgSolution.FindProject(fileName); return(HasPendingChildren(project)); } return(false); }