public ExpansionTemplate GetTemplateByShortcut (IExpansionClient expansionClient, string shortcut, IContentType contentType, ITextView textView, SnapshotSpan span, bool showDisambiguationUI) { foreach (var template in EnumerateExpansions (contentType, false, null, true, true)) if (template.Snippet.Shortcut == shortcut) return template; return null; }
public ExpansionTemplate GetTemplateByName (IExpansionClient expansionClient, IContentType contentType, string name, string filePath, ITextView textView, SnapshotSpan span, bool showDisambiguationUI) { foreach (var template in EnumerateExpansions (contentType, false, null, true, true)) if (template.Snippet.Title == name) return template; return null; }