1 implementation of ISnippetProvider
Microsoft.CodeAnalysis.Features (1)
Snippets\SnippetProviders\AbstractSnippetProvider.cs (1)
22
internal abstract class AbstractSnippetProvider<TSnippetSyntax> :
ISnippetProvider
11 references to ISnippetProvider
Microsoft.CodeAnalysis.Features (9)
Snippets\AbstractSnippetService.cs (6)
18
internal abstract class AbstractSnippetService(IEnumerable<Lazy<
ISnippetProvider
, LanguageMetadata>> lazySnippetProviders) : ISnippetService
20
private readonly ImmutableArray<Lazy<
ISnippetProvider
, LanguageMetadata>> _lazySnippetProviders = lazySnippetProviders.ToImmutableArray();
21
private readonly Dictionary<string,
ISnippetProvider
> _identifierToProviderMap = [];
23
private ImmutableArray<
ISnippetProvider
> _snippetProviders;
29
public
ISnippetProvider
GetSnippetProvider(string snippetIdentifier)
58
using var _ = ArrayBuilder<
ISnippetProvider
>.GetInstance(out var arrayBuilder);
Snippets\ExportSnippetProviderAttribute.cs (1)
13
internal sealed class ExportSnippetProviderAttribute(string name, string language) : ExportAttribute(typeof(
ISnippetProvider
))
Snippets\ISnippetService.cs (1)
23
ISnippetProvider
GetSnippetProvider(string snippetIdentifier);
Snippets\SnippetContext.cs (1)
12
/// The context presented to a <see cref="
ISnippetProvider
"/> when providing completions.
Microsoft.CodeAnalysis.Features.Test.Utilities (2)
Snippets\AbstractSnippetProviderTests.cs (2)
52
var
snippetProvider = snippetService.GetSnippetProvider(SnippetIdentifier);
129
var
snippetProvider = snippetService.GetSnippetProvider(SnippetIdentifier);