protected override IEnumerable <SimpleDothtmlCompletion> GetItemsCore(DothtmlCompletionContext context, string directiveName) { if (string.Equals(directiveName, Constants.MasterPageDirective, StringComparison.InvariantCultureIgnoreCase)) { var documents = CompletionHelper.GetCurrentProjectFiles(context) .Where(i => i.Name.EndsWith(".dotmaster", StringComparison.CurrentCultureIgnoreCase)) .Select(DTEHelper.GetProjectItemRelativePath) .ToList(); var glyph = context.GlyphService.GetGlyph(StandardGlyphGroup.GlyphJSharpDocument, StandardGlyphItem.GlyphItemPublic); return(documents.Select(d => new SimpleDothtmlCompletion(d, d, glyph))); } else { return(Enumerable.Empty <SimpleDothtmlCompletion>()); } }