8 instantiations of SnippetInfo
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Completion\CompletionProviders\SnippetCompletionProviderTests.cs (2)
152new SnippetInfo(SnippetShortcut, SnippetTitle, SnippetDescription, SnippetPath), 153new SnippetInfo(PreProcessorSnippetShortcut, PreProcessorSnippetTitle, PreProcessorSnippetDescription, PreProcessorSnippetPath)
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (1)
IntelliSense\VisualBasicCompletionCommandHandlerTests.vb (1)
3481Return SpecializedCollections.SingletonEnumerable(New SnippetInfo("Shortcut", "Title", "Description", "Path"))
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
InlineCompletions\TestSnippetInfoService.cs (1)
39var snippetInfos = snippets.Value.Select(s => new SnippetInfo(s.Shortcut, s.Title, s.Title, snippetsFile));
Microsoft.VisualStudio.LanguageServices (1)
Snippets\AbstractSnippetInfoService.cs (1)
202snippetListBuilder.Add(new SnippetInfo(snippetInfo.shortcut, snippetInfo.title, snippetInfo.description, snippetInfo.path));
Microsoft.VisualStudio.LanguageServices.UnitTests (3)
Completion\TestCSharpSnippetInfoService.vb (1)
27snippets = newSnippetShortcuts.Select(Function(shortcut) New SnippetInfo(shortcut, "title", "description", "path")).ToImmutableArray()
Completion\TestVisualBasicSnippetInfoService.vb (1)
27snippets = newSnippetShortcuts.Select(Function(shortcut) New SnippetInfo(shortcut, "title", "description", "path")).ToImmutableArray()
Snippets\SnippetCompletionProviderTests.vb (1)
136Return SpecializedCollections.SingletonEnumerable(New SnippetInfo("Shortcut", "Title", "Description", "Path"))
24 references to SnippetInfo
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (3)
Completion\CompletionProviders\SnippetCompletionProviderTests.cs (3)
149public IEnumerable<SnippetInfo> GetSnippetsIfAvailable() 150=> new List<SnippetInfo> 160public bool ShouldFormatSnippet(SnippetInfo snippetInfo)
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (2)
IntelliSense\VisualBasicCompletionCommandHandlerTests.vb (2)
3480Public Function GetSnippetsAsync_NonBlocking() As IEnumerable(Of SnippetInfo) Implements ISnippetInfoService.GetSnippetsIfAvailable 3484Public Function ShouldFormatSnippet(snippetInfo As SnippetInfo) As Boolean Implements ISnippetInfoService.ShouldFormatSnippet
Microsoft.CodeAnalysis.Features (2)
Snippets\ISnippetInfoService.cs (2)
14IEnumerable<SnippetInfo> GetSnippetsIfAvailable(); 16bool ShouldFormatSnippet(SnippetInfo snippetInfo);
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Handler\InlineCompletions\InlineCompletionsHandler.cs (1)
94var matchingSnippetInfo = snippetInfo.First(s => wordText.Equals(s.Shortcut, StringComparison.OrdinalIgnoreCase));
Handler\InlineCompletions\XmlSnippetParser.cs (3)
35internal ParsedXmlSnippet? GetParsedXmlSnippet(SnippetInfo matchingSnippetInfo, RequestContext context) 65private static ParsedXmlSnippet GetAndParseSnippetFromFile(SnippetInfo snippetInfo) 84private static CodeSnippet RetrieveSnippetXmlFromFile(SnippetInfo snippetInfo)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (2)
InlineCompletions\TestSnippetInfoService.cs (2)
27public IEnumerable<SnippetInfo> GetSnippetsIfAvailable() 43public bool ShouldFormatSnippet(SnippetInfo snippetInfo)
Microsoft.VisualStudio.LanguageServices (7)
Snippets\AbstractSnippetInfoService.cs (7)
37protected ImmutableArray<SnippetInfo> snippets = ImmutableArray.Create<SnippetInfo>(); 88public IEnumerable<SnippetInfo> GetSnippetsIfAvailable() 113public virtual bool ShouldFormatSnippet(SnippetInfo snippetInfo) 177private ImmutableArray<SnippetInfo> ExtractSnippetInfo(IVsExpansionEnumeration expansionEnumerator) 181var snippetListBuilder = ImmutableArray.CreateBuilder<SnippetInfo>(); 215protected static IImmutableSet<string> GetShortcutsHashFromSnippets(ImmutableArray<SnippetInfo> updatedSnippets)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
Snippets\CSharpSnippetInfoService.cs (1)
37public override bool ShouldFormatSnippet(SnippetInfo snippetInfo)
Microsoft.VisualStudio.LanguageServices.UnitTests (2)
Snippets\SnippetCompletionProviderTests.vb (2)
135Public Function GetSnippetsAsync_NonBlocking() As IEnumerable(Of SnippetInfo) Implements ISnippetInfoService.GetSnippetsIfAvailable 139Public Function ShouldFormatSnippet(snippetInfo As SnippetInfo) As Boolean Implements ISnippetInfoService.ShouldFormatSnippet
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
Snippets\SnippetCompletionProvider.vb (1)
105Private Shared Function CreateCompletionItems(snippets As IEnumerable(Of SnippetInfo)) As IEnumerable(Of CompletionItem)