public IEnumerable<ICssCompletionListEntry> GetListEntries(CssCompletionContext context) { Declaration dec = context.ContextItem.FindType<Declaration>(); if (dec == null || dec.PropertyName == null || dec.PropertyName.Text != "font-family") yield break; foreach (string item in _entryCache) { ICssCompletionListEntry entry = new CompletionListEntry(item, 1); yield return entry; } }
public IEnumerable <ICssCompletionListEntry> GetListEntries(CssCompletionContext context) { Declaration dec = context.ContextItem.FindType <Declaration>(); if (dec == null || dec.PropertyName == null || dec.PropertyName.Text != "font-family") { yield break; } foreach (string item in _entryCache) { ICssCompletionListEntry entry = new CompletionListEntry(item, 1); yield return(entry); } }