4 instantiations of SnippetInfo
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Completion\CompletionProviders\SnippetCompletionProviderTests.cs (2)
150new SnippetInfo(SnippetShortcut, SnippetTitle, SnippetDescription, SnippetPath), 151new SnippetInfo(PreProcessorSnippetShortcut, PreProcessorSnippetTitle, PreProcessorSnippetDescription, PreProcessorSnippetPath)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
InlineCompletions\TestSnippetInfoService.cs (1)
38var snippetInfos = snippets.Value.Select(s => new SnippetInfo(s.Shortcut, s.Title, s.Title, snippetsFile));
Microsoft.VisualStudio.LanguageServices (1)
Snippets\AbstractSnippetInfoService.cs (1)
201snippetListBuilder.Add(new SnippetInfo(snippetInfo.shortcut, snippetInfo.title, snippetInfo.description, snippetInfo.path));
17 references to SnippetInfo
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Completion\CompletionProviders\SnippetCompletionProviderTests.cs (2)
148public IEnumerable<SnippetInfo> GetSnippetsIfAvailable() 158public bool ShouldFormatSnippet(SnippetInfo snippetInfo)
Microsoft.CodeAnalysis.Features (2)
Snippets\ISnippetInfoService.cs (2)
12IEnumerable<SnippetInfo> GetSnippetsIfAvailable(); 14bool ShouldFormatSnippet(SnippetInfo snippetInfo);
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Handler\InlineCompletions\InlineCompletionsHandler.cs (1)
144var matchingSnippetInfo = snippetInfo.First(s => wordText.Equals(s.Shortcut, StringComparison.OrdinalIgnoreCase));
Handler\InlineCompletions\XmlSnippetParser.cs (3)
35internal ParsedXmlSnippet? GetParsedXmlSnippet(SnippetInfo matchingSnippetInfo, ILspLogger logger) 65private static ParsedXmlSnippet GetAndParseSnippetFromFile(SnippetInfo snippetInfo) 84private static CodeSnippet RetrieveSnippetXmlFromFile(SnippetInfo snippetInfo)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (2)
InlineCompletions\TestSnippetInfoService.cs (2)
26public IEnumerable<SnippetInfo> GetSnippetsIfAvailable() 42public bool ShouldFormatSnippet(SnippetInfo snippetInfo)
Microsoft.VisualStudio.LanguageServices (6)
Snippets\AbstractSnippetInfoService.cs (6)
36protected ImmutableArray<SnippetInfo> snippets = []; 87public IEnumerable<SnippetInfo> GetSnippetsIfAvailable() 112public virtual bool ShouldFormatSnippet(SnippetInfo snippetInfo) 176private ImmutableArray<SnippetInfo> ExtractSnippetInfo(IVsExpansionEnumeration expansionEnumerator) 180var snippetListBuilder = ImmutableArray.CreateBuilder<SnippetInfo>(); 214protected static IImmutableSet<string> GetShortcutsHashFromSnippets(ImmutableArray<SnippetInfo> updatedSnippets)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
Snippets\CSharpSnippetInfoService.cs (1)
37public override bool ShouldFormatSnippet(SnippetInfo snippetInfo)