2 instantiations of SnippetInfo
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (1)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostDocumentCompletionEndpointTest.cs (1)
1328var snippetInfos = snippetLabels.Select(label => new SnippetInfo(label, label, label, string.Empty, SnippetLanguage.Html)).ToImmutableArray();
Microsoft.VisualStudio.RazorExtension (1)
Snippets\SnippetService.cs (1)
198snippetListBuilder.Add(new SnippetInfo(snippetInfo.shortcut, snippetInfo.title, snippetInfo.description, snippetInfo.path, language));
13 references to SnippetInfo
Microsoft.VisualStudio.LanguageServices.Razor (9)
Snippets\SnippetCache.cs (5)
17private readonly Dictionary<SnippetLanguage, ImmutableArray<SnippetInfo>> _snippetCache = new(); 20internal void Update(SnippetLanguage language, ImmutableArray<SnippetInfo> snippets) 28public ImmutableArray<SnippetInfo> GetSnippets(SnippetLanguage language) 36ImmutableArray<SnippetInfo> snippets; 43var snippet = snippets.FirstOrDefault(completionData.Matches);
Snippets\SnippetInfo.cs (1)
64internal bool Matches(SnippetInfo s)
Snippets\XmlSnippetParser.cs (3)
12internal static ParsedXmlSnippet? GetParsedXmlSnippet(SnippetInfo matchingSnippetInfo, ILogger? logger = null) 28private static ParsedXmlSnippet GetAndParseSnippetFromFile(SnippetInfo snippetInfo) 44private static CodeSnippet RetrieveSnippetXmlFromFile(SnippetInfo snippetInfo)
Microsoft.VisualStudio.RazorExtension (4)
Snippets\SnippetService.cs (4)
157private ImmutableArray<SnippetInfo> ExtractSnippetInfo(SnippetLanguage language, IVsExpansionEnumeration expansionEnumerator, SnippetSetting snippetSetting) 163return ImmutableArray<SnippetInfo>.Empty; 177return ImmutableArray<SnippetInfo>.Empty; 181using var snippetListBuilder = new PooledArrayBuilder<SnippetInfo>();