public override bool IsVisible(IVisualStudioService visualStudioService) { var selectedItems = visualStudioService.GetSelectedFileNamesQualified(); return(selectedItems.Count() == 1 && selectedItems.First().ToLower().EndsWith("schema.cs")); }
public override bool IsVisible(IVisualStudioService visualStudioService) { var selectedItems = visualStudioService.GetSelectedFileNamesQualified(); return(selectedItems.All(f => ValidExtentions.Any(ext => f.EndsWith("." + ext)))); }