Ejemplo n.º 1
0
		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;
		}
Ejemplo n.º 2
0
		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;
		}