24 types derived from CompletionProvider
Microsoft.AspNetCore.App.Analyzers (2)
Microsoft.AspNetCore.App.CodeFixes (1)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Features (2)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (9)
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
Microsoft.CodeAnalysis.Features (4)
Microsoft.CodeAnalysis.LanguageServer (1)
Microsoft.CodeAnalysis.VisualBasic.Features (2)
73 references to CompletionProvider
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (9)
Microsoft.CodeAnalysis.EditorFeatures (3)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
Microsoft.CodeAnalysis.Features (44)
Completion\CompletionService.ProviderManager.cs (23)
28private readonly Lazy<ImmutableDictionary<string, CompletionProvider>> _nameToProvider;
29private readonly Dictionary<ImmutableHashSet<string>, ImmutableArray<CompletionProvider>> _rolesToProviders;
30private IReadOnlyList<Lazy<CompletionProvider, CompletionProviderMetadata>>? _lazyImportedProviders;
38_rolesToProviders = new Dictionary<ImmutableHashSet<string>, ImmutableArray<CompletionProvider>>(this);
39_nameToProvider = new Lazy<ImmutableDictionary<string, CompletionProvider>>(LoadImportedProvidersAndCreateNameMap, LazyThreadSafetyMode.PublicationOnly);
49private ImmutableDictionary<string, CompletionProvider> LoadImportedProvidersAndCreateNameMap()
51var builder = ImmutableDictionary.CreateBuilder<string, CompletionProvider>();
58foreach (var builtinProvider in _service.GetBuiltInProviders())
65private IReadOnlyList<Lazy<CompletionProvider, CompletionProviderMetadata>> GetLazyImportedProviders()
73mefExporter.GetExports<CompletionProvider, CompletionProviderMetadata>()
96public ImmutableArray<CompletionProvider> GetCachedProjectCompletionProvidersOrQueueLoadInBackground(Project? project, CompletionOptions options)
120private ImmutableArray<CompletionProvider> GetImportedAndBuiltInProviders(ImmutableHashSet<string>? roles)
135ImmutableArray<CompletionProvider> GetImportedAndBuiltInProvidersWorker(ImmutableHashSet<string> roles)
151public CompletionProvider? GetProvider(CompletionItem item, Project? project)
156if (_nameToProvider.Value.TryGetValue(item.ProviderName, out var provider))
159using var _ = PooledDelegates.GetPooledFunction(static (p, n) => p.Name == n, item.ProviderName, out Func<CompletionProvider, bool> isNameMatchingProviderPredicate);
166public ConcatImmutableArray<CompletionProvider> GetFilteredProviders(
174private ImmutableArray<CompletionProvider> FilterProviders(
175ImmutableArray<CompletionProvider> providers,
257: AbstractProjectExtensionProvider<ProjectCompletionProvider, CompletionProvider, ExportCompletionProviderAttribute>
262protected override bool TryGetExtensionsFromReference(AnalyzerReference reference, out ImmutableArray<CompletionProvider> extensions)
283public ImmutableArray<CompletionProvider> GetImportedAndBuiltInProviders(ImmutableHashSet<string> roles)
288public ImmutableArray<CompletionProvider> GetProjectProviders(Project project)
Microsoft.CodeAnalysis.LanguageServer (9)
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)