private static IEnumerable <string> BuildCache()
        {
            yield return("*");

            foreach (var element in TagCompletionProvider.GetListEntriesCache())
            {
                yield return(element.DisplayText);
            }
        }
Пример #2
0
        private static IEnumerable <Completion> AddHtmlTagNames()
        {
            List <string> list = new List <string>();

            foreach (var entry in TagCompletionProvider.GetListEntriesCache())
            {
                if (!list.Contains(entry.DisplayText))
                {
                    list.Add(entry.DisplayText);
                }
            }


            foreach (string name in list)
            {
                yield return(GenerateCompletion(name));
            }
        }