24 types derived from CompletionProvider
Microsoft.AspNetCore.App.Analyzers (2)
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (1)
34public sealed class FrameworkParametersCompletionProvider : CompletionProvider
RouteEmbeddedLanguage\RoutePatternCompletionProvider.cs (1)
28public class RoutePatternCompletionProvider : CompletionProvider
Microsoft.AspNetCore.App.CodeFixes (1)
Dependencies\ExtensionMethodsCompletionProvider.cs (1)
25public sealed class ExtensionMethodsCompletionProvider : CompletionProvider
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Completion\CompletionServiceTests.cs (1)
69private sealed class ThirdPartyCompletionProvider : CompletionProvider
Microsoft.CodeAnalysis.CSharp.Features (2)
Completion\CompletionProviders\FirstBuiltInCompletionProvider.cs (1)
19internal sealed class FirstBuiltInCompletionProvider : CompletionProvider
Completion\CompletionProviders\LastBuiltInCompletionProvider.cs (1)
20internal sealed class LastBuiltInCompletionProvider : CompletionProvider
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Completion\CompletionServiceTests.cs (1)
95private sealed class DebugAssertTestCompletionProvider : CompletionProvider
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (9)
IntelliSense\CompletionServiceTests.vb (2)
70Inherits CompletionProvider 118Inherits CompletionProvider
IntelliSense\CompletionServiceTests_Exclusivitiy.vb (1)
73Inherits CompletionProvider
IntelliSense\CSharpCompletionCommandHandlerTests.vb (5)
5390Inherits CompletionProvider 8203Inherits CompletionProvider 8248Inherits CompletionProvider 9589Inherits CompletionProvider 10761Inherits CompletionProvider
IntelliSense\CSharpCompletionCommandHandlerTests_DefaultsSource.vb (1)
420Inherits CompletionProvider
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
Completion\FSharpCompletionProviderBase.cs (1)
12internal abstract class FSharpCompletionProviderBase : CompletionProvider
Microsoft.CodeAnalysis.Features (4)
Completion\CommonCompletionProvider.cs (1)
21internal abstract class CommonCompletionProvider : CompletionProvider
Completion\Providers\Scripting\AbstractDirectivePathCompletionProvider.cs (1)
19internal abstract class AbstractDirectivePathCompletionProvider : CompletionProvider
Completion\Providers\Snippets\AbstractSnippetCompletionProvider.cs (1)
18internal abstract class AbstractSnippetCompletionProvider : CompletionProvider
ExternalAccess\VSTypeScript\Api\VSTypeScriptCompletionProvider.cs (1)
13internal abstract class VSTypeScriptCompletionProvider : CompletionProvider
Microsoft.CodeAnalysis.LanguageServer (1)
Services\StarredCompletions\StarredCompletionProvider.cs (1)
14internal class StarredCompletionProvider : CompletionProvider
Microsoft.CodeAnalysis.VisualBasic.Features (2)
Completion\CompletionProviders\FirstBuiltInCompletionProvider.vb (1)
17Inherits CompletionProvider
Completion\CompletionProviders\LastBuiltInCompletionProvider.vb (1)
17Inherits CompletionProvider
73 references to CompletionProvider
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (9)
Completion\CompletionProviders\CompletionProviderOrderTests.cs (5)
29var completionProviderExports = exportProvider.GetExports<CompletionProvider, CompletionProviderMetadata>(); 93var completionProviderExports = exportProvider.GetExports<CompletionProvider, CompletionProviderMetadata>(); 133var completionProviderExports = exportProvider.GetExports<CompletionProvider, CompletionProviderMetadata>(); 144var completionProviderExports = exportProvider.GetExports<CompletionProvider, CompletionProviderMetadata>(); 155var completionProviderExports = exportProvider.GetExports<CompletionProvider, CompletionProviderMetadata>();
Completion\CompletionProviders\LoadDirectiveCompletionProviderTests.cs (1)
85var provider = workspace.ExportProvider.GetExports<CompletionProvider, CompletionProviderMetadata>().Single(p => p.Metadata.Language == LanguageNames.CSharp && p.Metadata.Name == nameof(LoadDirectiveCompletionProvider)).Value;
Completion\CompletionProviders\ReferenceDirectiveCompletionProviderTests.cs (1)
126var provider = workspace.ExportProvider.GetExports<CompletionProvider, CompletionProviderMetadata>().Single(p => p.Metadata.Language == LanguageNames.CSharp && p.Metadata.Name == nameof(ReferenceDirectiveCompletionProvider)).Value;
Completion\CompletionProviders\SuggestionModeCompletionProviderTests.cs (1)
1531var provider = Assert.Single(service.GetTestAccessor().GetImportedAndBuiltInProviders(ImmutableHashSet<string>.Empty));
Completion\CompletionServiceTests.cs (1)
62var provider = service.GetProvider(item, document.Project);
Microsoft.CodeAnalysis.EditorFeatures (3)
Editor\EditorLayerExtensionManager.cs (1)
56or CompletionProvider)
Extensibility\Completion\ExportCompletionProviderAttribute.cs (1)
15internal class ExportCompletionProviderMef1Attribute(string name, string language) : ExportAttribute(typeof(CompletionProvider))
IntelliSense\AsyncCompletion\CommitManager.cs (1)
243var provider = completionService.GetProvider(roslynItem, document.Project);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
Completion\AbstractCompletionProviderTests.cs (2)
38private static readonly TestComposition s_baseComposition = EditorTestCompositions.EditorFeatures.AddExcludedPartTypes(typeof(CompletionProvider)); 106var completionProvider = Assert.Single(completionProviders);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
Completion\CompletionServiceTests.cs (3)
75private readonly CompletionProvider _completionProvider; 77public MockAnalyzerReference(CompletionProvider completionProvider) 91public ImmutableArray<CompletionProvider> GetCompletionProviders()
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
Completion\FSharpCommonCompletionProvider.cs (1)
15public static CompletionProvider Create(FSharpCommonCompletionProviderBase fsharpCommonCompletionProvider)
Microsoft.CodeAnalysis.Features (44)
Completion\CommonCompletionUtilities.cs (1)
251internal static ImmutableHashSet<char> GetTriggerCharacters(CompletionProvider provider)
Completion\CompletionContext.cs (4)
19/// The context presented to a <see cref="CompletionProvider"/> when providing completions. 28internal CompletionProvider Provider { get; } 113CompletionProvider provider, 139CompletionProvider provider,
Completion\CompletionItem.cs (1)
162/// The name of the <see cref="CompletionProvider"/> that created this
Completion\CompletionService.cs (8)
29/// one or more <see cref="CompletionProvider"/>s. 59protected virtual ImmutableArray<CompletionProvider> GetBuiltInProviders() 211var provider = GetProvider(item, document.Project); 244var provider = GetProvider(item, document.Project); 393internal CompletionProvider? GetProvider(CompletionItem item, Project? project) 403public ImmutableArray<CompletionProvider> GetImportedAndBuiltInProviders(ImmutableHashSet<string> roles) 406public ImmutableArray<CompletionProvider> GetProjectProviders(Project project) 410CompletionProvider provider,
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)
Completion\CompletionService_GetCompletions.cs (2)
129ImmutableArray<CompletionProvider> GetTriggeredProviders( 130Document document, ConcatImmutableArray<CompletionProvider> providers, int caretPosition, CompletionOptions options, CompletionTrigger trigger, ImmutableHashSet<string>? roles, SourceText text)
Completion\ExportCompletionProviderAttribute.cs (2)
11/// Use this attribute to export a <see cref="CompletionProvider"/> so that it will 16public sealed class ExportCompletionProviderAttribute(string name, string language) : ExportAttribute(typeof(CompletionProvider))
Completion\ICompletionProviderFactory.cs (1)
11ImmutableArray<CompletionProvider> GetCompletionProviders();
Completion\INotifyCommittingItemCompletionProvider.cs (1)
12/// is being committed by the host, since calling <see cref="CompletionProvider.GetChangeAsync"/> doesn't necessarily
Completion\MatchPriority.cs (1)
22/// Ordinary <see cref="CompletionProvider"/>s typically specify this.
Microsoft.CodeAnalysis.LanguageServer (9)
Services\StarredCompletions\StarredCompletionProvider.cs (3)
22var provider = await StarredCompletionAssemblyHelper.GetCompletionProviderAsync(context.CancellationToken); 32var provider = await StarredCompletionAssemblyHelper.GetCompletionProviderAsync(cancellationToken); 39var provider = await StarredCompletionAssemblyHelper.GetCompletionProviderAsync(cancellationToken);
Services\StarredCompletions\StarredCompletionsAssemblyHelper.cs (6)
33private static CompletionProvider? s_completionProvider; 62internal static async Task<CompletionProvider?> GetCompletionProviderAsync(CancellationToken cancellationToken) 65if (s_completionProvider is CompletionProvider completionProvider) 90if (s_completionProvider is CompletionProvider completionProviderInsideLock) 138private static async Task<CompletionProvider> CreateCompletionProviderAsync(MethodInfo createCompletionProviderMethodInfo, IServiceBroker serviceBroker, string modelBasePath, ILogger logger) 145var completionProvider = (Task<CompletionProvider>)completionProviderObj;
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
DefaultCapabilitiesProvider.cs (2)
23private readonly ImmutableArray<Lazy<CompletionProvider, CompletionProviderMetadata>> _completionProviders; 28[ImportMany] IEnumerable<Lazy<CompletionProvider, CompletionProviderMetadata>> completionProviders)