136 references to CompletionContext
Microsoft.AspNetCore.App.Analyzers (7)
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (4)
92public override async Task ProvideCompletionsAsync(CompletionContext context) 293private static SyntaxToken? TryGetMvcActionRouteToken(CompletionContext context, SemanticModel semanticModel, MethodDeclarationSyntax method) 479private readonly CompletionContext _context; 495CompletionContext context,
RouteEmbeddedLanguage\RoutePatternCompletionProvider.cs (3)
86public override async Task ProvideCompletionsAsync(CompletionContext context) 327private readonly CompletionContext _context; 344CompletionContext context,
Microsoft.AspNetCore.App.CodeFixes (1)
Dependencies\ExtensionMethodsCompletionProvider.cs (1)
27public override async Task ProvideCompletionsAsync(CompletionContext context)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Completion\CompletionServiceTests.cs (1)
77public override Task ProvideCompletionsAsync(CompletionContext context)
Microsoft.CodeAnalysis.CSharp.Features (38)
Completion\CompletionProviders\AttributeNamedParameterCompletionProvider.cs (3)
51public override async Task ProvideCompletionsAsync(CompletionContext context) 154CompletionContext context, SemanticModel semanticModel, 177CompletionContext context, SemanticModel semanticModel, SyntaxToken token, AttributeSyntax attributeSyntax, ISet<string> existingNamedParameters)
Completion\CompletionProviders\CrefCompletionProvider.cs (1)
58public override async Task ProvideCompletionsAsync(CompletionContext context)
Completion\CompletionProviders\DeclarationName\DeclarationNameCompletionProvider.cs (1)
40public override async Task ProvideCompletionsAsync(CompletionContext completionContext)
Completion\CompletionProviders\DeclarationName\DeclarationNameRecommender.cs (1)
39CompletionContext completionContext,
Completion\CompletionProviders\DeclarationName\IDeclarationNameRecommender.cs (1)
16CompletionContext completionContext,
Completion\CompletionProviders\EnumAndCompletionListTagCompletionProvider.cs (2)
61public override async Task ProvideCompletionsAsync(CompletionContext context) 108CompletionContext context, SemanticModel semanticModel, SyntaxToken token, ITypeSymbol type, bool isParams, CancellationToken cancellationToken)
Completion\CompletionProviders\ExplicitInterfaceMemberCompletionProvider.cs (1)
105public override async Task ProvideCompletionsAsync(CompletionContext context)
Completion\CompletionProviders\ExplicitInterfaceTypeCompletionProvider.cs (3)
41public override async Task ProvideCompletionsAsync(CompletionContext context) 64CompletionContext? completionContext, CSharpSyntaxContext context, int position, CompletionOptions options, CancellationToken cancellationToken) 145CompletionContext completionContext,
Completion\CompletionProviders\ExternAliasCompletionProvider.cs (1)
39public override async Task ProvideCompletionsAsync(CompletionContext context)
Completion\CompletionProviders\FirstBuiltInCompletionProvider.cs (1)
27public override Task ProvideCompletionsAsync(CompletionContext context)
Completion\CompletionProviders\FunctionPointerUnmanagedCallingConventionCompletionProvider.cs (1)
43public override async Task ProvideCompletionsAsync(CompletionContext context)
Completion\CompletionProviders\LastBuiltInCompletionProvider.cs (1)
28public override Task ProvideCompletionsAsync(CompletionContext context)
Completion\CompletionProviders\NamedParameterCompletionProvider.cs (1)
53public override async Task ProvideCompletionsAsync(CompletionContext context)
Completion\CompletionProviders\ObjectCreationCompletionProvider.cs (1)
65CompletionContext? completionContext, CSharpSyntaxContext context, int position, CompletionOptions options, CancellationToken cancellationToken)
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider.cs (2)
97public override async Task ProvideCompletionsAsync(CompletionContext context) 123CompletionContext context, int position, SemanticModel semanticModel, ImmutableArray<ISymbol> unnamedSymbols, CancellationToken cancellationToken)
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider_Conversions.cs (2)
40private static void AddConversion(CompletionContext context, SemanticModel semanticModel, int position, IMethodSymbol conversion) 60CompletionContext context, IMethodSymbol conversion)
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider_Indexers.cs (1)
21private void AddIndexers(CompletionContext context, ImmutableArray<ISymbol> indexers)
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider_Operators.cs (1)
101private void AddOperatorGroup(CompletionContext context, string opName, IEnumerable<ISymbol> operators)
Completion\CompletionProviders\PropertySubPatternCompletionProvider.cs (1)
42public override async Task ProvideCompletionsAsync(CompletionContext context)
Completion\CompletionProviders\SnippetCompletionProvider.cs (3)
72public override async Task ProvideCompletionsAsync(CompletionContext context) 102Document document, CompletionContext completionContext, CancellationToken cancellationToken) 167CompletionContext context, SolutionServices services, SemanticModel semanticModel, bool isPreProcessorContext)
Completion\CompletionProviders\SpeculativeTCompletionProvider.cs (2)
40public override async Task ProvideCompletionsAsync(CompletionContext context) 64private static async Task<bool> ShouldShowSpeculativeTCompletionItemAsync(Document document, CompletionContext completionContext, CancellationToken cancellationToken)
Completion\CompletionProviders\SymbolCompletionProvider.cs (4)
80CompletionContext? context, 95CompletionContext? completionContext, 117CompletionContext completionContext, 221CompletionContext completionContext,
Completion\CompletionProviders\TupleNameCompletionProvider.cs (2)
40public override async Task ProvideCompletionsAsync(CompletionContext completionContext) 91private static void AddItems(ImmutableArray<INamedTypeSymbol> inferredTypes, int index, CompletionContext context, int spanStart)
ExternalAccess\Pythia\PythiaDeclarationNameRecommender.cs (1)
27CompletionContext completionContext,
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Completion\CompletionServiceTests.cs (1)
112public override async Task ProvideCompletionsAsync(CompletionContext context)
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
Interactive\AbstractInteractiveWindowCommandCompletionProvider.cs (1)
21public override async Task ProvideCompletionsAsync(CompletionContext context)
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (16)
IntelliSense\CompletionServiceTests.vb (2)
81Public Overrides Function ProvideCompletionsAsync(context As CompletionContext) As Task 132Public Overrides Function ProvideCompletionsAsync(context As CompletionContext) As Task
IntelliSense\CompletionServiceTests_Exclusivitiy.vb (1)
89Public Overrides Function ProvideCompletionsAsync(context As CompletionContext) As Task
IntelliSense\CSharpCompletionCommandHandlerTests.vb (10)
4203Public Overrides Async Function ProvideCompletionsAsync(context As CompletionContext) As Task 5404Public Overrides Function ProvideCompletionsAsync(context As CompletionContext) As Task 8218Public Overrides Function ProvideCompletionsAsync(context As CompletionContext) As Task 8257Public Overrides Function ProvideCompletionsAsync(context As CompletionContext) As Task 9607Public Overrides Function ProvideCompletionsAsync(context As CompletionContext) As Task 9684Public Overrides Async Function ProvideCompletionsAsync(context As CompletionContext) As Task 10267Public Overrides Function ProvideCompletionsAsync(context As CompletionContext) As Task 10341Public Overrides Function ProvideCompletionsAsync(context As CompletionContext) As Task 10633Public Overrides Async Function ProvideCompletionsAsync(context As CompletionContext) As Task 10768Public Overrides Function ProvideCompletionsAsync(context As CompletionContext) As Task
IntelliSense\CSharpCompletionCommandHandlerTests_DefaultsSource.vb (1)
427Public Overrides Function ProvideCompletionsAsync(context As CompletionContext) As Task
IntelliSense\MockCompletionProvider.vb (1)
27Public Overrides Function ProvideCompletionsAsync(context As CompletionContext) As Task
IntelliSense\VisualBasicCompletionCommandHandlerTests.vb (1)
990Public Overrides Function ProvideCompletionsAsync(context As CompletionContext) As Task
Microsoft.CodeAnalysis.ExternalAccess.FSharp (2)
Completion\IFSharpCommonCompletionProvider.cs (1)
17public abstract Task ProvideCompletionsAsync(CompletionContext context);
Internal\Completion\FSharpInternalCommonCompletionProvider.cs (1)
26public override Task ProvideCompletionsAsync(CompletionContext context)
Microsoft.CodeAnalysis.Features (52)
Completion\CompletionContext.cs (2)
110/// Creates a <see cref="CompletionContext"/> instance. 136/// Creates a <see cref="CompletionContext"/> instance.
Completion\CompletionProvider.cs (1)
27public abstract Task ProvideCompletionsAsync(CompletionContext context);
Completion\CompletionService.cs (1)
409public async Task<CompletionContext> GetContextAsync(
Completion\Providers\AbstractAggregateEmbeddedLanguageCompletionProvider.cs (1)
90public override async Task ProvideCompletionsAsync(CompletionContext context)
Completion\Providers\AbstractAwaitCompletionProvider.cs (1)
80public sealed override async Task ProvideCompletionsAsync(CompletionContext context)
Completion\Providers\AbstractDocCommentCompletionProvider.cs (1)
75public override async Task ProvideCompletionsAsync(CompletionContext context)
Completion\Providers\AbstractInternalsVisibleToCompletionProvider.cs (3)
55public override async Task ProvideCompletionsAsync(CompletionContext context) 133private async Task AddAssemblyCompletionItemsAsync(CompletionContext context, CancellationToken cancellationToken) 174private async Task<IImmutableSet<string>> GetAllInternalsVisibleToAssemblyNamesOfProjectAsync(CompletionContext completionContext, CancellationToken cancellationToken)
Completion\Providers\AbstractKeywordCompletionProvider.cs (2)
31public override async Task ProvideCompletionsAsync(CompletionContext context) 43private async Task<ImmutableArray<CompletionItem>> RecommendCompletionItemsAsync(Document document, CompletionContext context, CancellationToken cancellationToken)
Completion\Providers\AbstractObjectCreationCompletionProvider.cs (2)
27CompletionContext completionContext, 48CompletionContext? completionContext, TSyntaxContext context, int position, CompletionOptions options, CancellationToken cancellationToken)
Completion\Providers\AbstractObjectInitializerCompletionProvider.cs (1)
23public override async Task ProvideCompletionsAsync(CompletionContext context)
Completion\Providers\AbstractOverrideCompletionProvider.cs (1)
22public override async Task ProvideCompletionsAsync(CompletionContext context)
Completion\Providers\AbstractPartialMethodCompletionProvider.cs (1)
40public override async Task ProvideCompletionsAsync(CompletionContext context)
Completion\Providers\AbstractPartialTypeCompletionProvider.cs (1)
27public sealed override async Task ProvideCompletionsAsync(CompletionContext completionContext)
Completion\Providers\AbstractPreprocessorCompletionProvider.cs (1)
17public sealed override async Task ProvideCompletionsAsync(CompletionContext context)
Completion\Providers\AbstractRecommendationServiceBasedCompletionProvider.cs (5)
23protected abstract Task<bool> ShouldPreselectInferredTypesAsync(CompletionContext? completionContext, int position, CompletionOptions options, CancellationToken cancellationToken); 24protected abstract Task<bool> ShouldProvideAvailableSymbolsInCurrentContextAsync(CompletionContext? completionContext, TSyntaxContext context, int position, CompletionOptions options, CancellationToken cancellationToken); 34CompletionContext? completionContext, TSyntaxContext context, int position, CompletionOptions options, CancellationToken cancellationToken) 134CompletionContext completionContext, 172private static bool ShouldSoftSelectInArgumentList(CompletionContext completionContext, TSyntaxContext context, bool preselect)
Completion\Providers\AbstractSuggestionModeCompletionProvider.cs (1)
16public override async Task ProvideCompletionsAsync(CompletionContext context)
Completion\Providers\AbstractSymbolCompletionProvider.cs (8)
31CompletionContext? completionContext, 38CompletionContext completionContext, 98CompletionContext completionContext, 198CompletionContext completionContext, 252public override async Task ProvideCompletionsAsync(CompletionContext completionContext) 290CompletionContext completionContext, 358CompletionContext completionContext, Document document, CompletionOptions options, IEnumerable<DocumentId> relatedDocuments, CancellationToken cancellationToken) 386CompletionContext? completionContext, TSyntaxContext syntaxContext, CompletionOptions options, CancellationToken cancellationToken)
Completion\Providers\EmbeddedLanguageCompletionProvider.cs (1)
23public abstract Task ProvideCompletionsAsync(CompletionContext context);
Completion\Providers\ImportCompletionProvider\AbstractExtensionMethodImportCompletionProvider.cs (2)
24protected override bool ShouldProvideCompletion(CompletionContext completionContext, SyntaxContext syntaxContext) 36CompletionContext completionContext,
Completion\Providers\ImportCompletionProvider\AbstractImportCompletionProvider.cs (3)
21protected abstract bool ShouldProvideCompletion(CompletionContext completionContext, SyntaxContext syntaxContext); 23protected abstract Task AddCompletionItemsAsync(CompletionContext completionContext, SyntaxContext syntaxContext, HashSet<string> namespacesInScope, CancellationToken cancellationToken); 36public override async Task ProvideCompletionsAsync(CompletionContext completionContext)
Completion\Providers\ImportCompletionProvider\AbstractTypeImportCompletionProvider.cs (3)
21protected override bool ShouldProvideCompletion(CompletionContext completionContext, SyntaxContext syntaxContext) 33protected override async Task AddCompletionItemsAsync(CompletionContext completionContext, SyntaxContext syntaxContext, HashSet<string> namespacesInScope, CancellationToken cancellationToken) 118CompletionContext completionContext,
Completion\Providers\Scripting\AbstractDirectivePathCompletionProvider.cs (2)
31public sealed override async Task ProvideCompletionsAsync(CompletionContext context) 157protected abstract Task ProvideCompletionsAsync(CompletionContext context, string pathThroughLastSlash);
Completion\Providers\Scripting\AbstractLoadDirectiveCompletionProvider.cs (1)
39protected override async Task ProvideCompletionsAsync(CompletionContext context, string pathThroughLastSlash)
Completion\Providers\Scripting\AbstractReferenceDirectiveCompletionProvider.cs (1)
49protected override async Task ProvideCompletionsAsync(CompletionContext context, string pathThroughLastSlash)
Completion\Providers\Snippets\AbstractSnippetCompletionProvider.cs (1)
66public override async Task ProvideCompletionsAsync(CompletionContext context)
EmbeddedLanguages\DateAndTime\DateAndTimeEmbeddedCompletionProvider.cs (1)
60public override async Task ProvideCompletionsAsync(CompletionContext context)
EmbeddedLanguages\DateAndTime\EmbeddedCompletionContext.cs (1)
38CompletionContext context,
EmbeddedLanguages\RegularExpressions\LanguageServices\EmbeddedCompletionContext.cs (2)
19private readonly CompletionContext _context; 30CompletionContext context,
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexEmbeddedCompletionProvider.cs (1)
59public override async Task ProvideCompletionsAsync(CompletionContext context)
Microsoft.CodeAnalysis.LanguageServer (1)
Services\StarredCompletions\StarredCompletionProvider.cs (1)
20public override async Task ProvideCompletionsAsync(CompletionContext context)
Microsoft.CodeAnalysis.VisualBasic.Features (14)
Completion\CompletionProviders\CompletionListTagCompletionProvider.vb (2)
30completionContext As CompletionContext, 93completionContext As CompletionContext,
Completion\CompletionProviders\CrefCompletionProvider.vb (1)
56Public Overrides Async Function ProvideCompletionsAsync(context As CompletionContext) As Task
Completion\CompletionProviders\EnumCompletionProvider.vb (2)
38completionContext As CompletionContext, 125completionContext As CompletionContext,
Completion\CompletionProviders\FirstBuiltInCompletionProvider.vb (1)
24Public Overrides Function ProvideCompletionsAsync(context As CompletionContext) As Task
Completion\CompletionProviders\HandlesClauseCompletionProvider.vb (2)
36completionContext As CompletionContext, 164Protected Overrides Function CreateItem(completionContext As CompletionContext, displayText As String, displayTextSuffix As String, insertionText As String, symbols As ImmutableArray(Of SymbolAndSelectionInfo), context As VisualBasicSyntaxContext, supportedPlatformData As SupportedPlatformData) As CompletionItem
Completion\CompletionProviders\ImplementsClauseCompletionProvider.vb (2)
47completionContext As CompletionContext, 301completionContext As CompletionContext,
Completion\CompletionProviders\LastBuiltInCompletionProvider.vb (1)
24Public Overrides Function ProvideCompletionsAsync(context As CompletionContext) As Task
Completion\CompletionProviders\NamedParameterCompletionProvider.vb (1)
44Public Overrides Async Function ProvideCompletionsAsync(context As CompletionContext) As Task
Completion\CompletionProviders\SymbolCompletionProvider.vb (2)
70Protected Overrides Function ShouldPreselectInferredTypesAsync(completionContext As CompletionContext, position As Integer, options As CompletionOptions, cancellationToken As CancellationToken) As Task(Of Boolean) 74Protected Overrides Function ShouldProvideAvailableSymbolsInCurrentContextAsync(completionContext As CompletionContext, syntaxContext As VisualBasicSyntaxContext, position As Integer, options As CompletionOptions, cancellationToken As CancellationToken) As Task(Of Boolean)
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
Completion\MockCompletionProvider.vb (1)
15Public Overrides Function ProvideCompletionsAsync(context As CompletionContext) As Task
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
Snippets\SnippetCompletionProvider.vb (1)
46Public Overrides Async Function ProvideCompletionsAsync(context As CompletionContext) As Task