72 references to CompletionTriggerKind
Microsoft.AspNetCore.App.Analyzers (12)
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (5)
53if (trigger.Kind is CompletionTriggerKind.Invoke or CompletionTriggerKind.InvokeAndCommitIfUnique) 58if (trigger.Kind == CompletionTriggerKind.Insertion) 179if (context.Trigger.Kind == CompletionTriggerKind.Insertion) 218if (context.Trigger.Kind == CompletionTriggerKind.Insertion)
RouteEmbeddedLanguage\RoutePatternCompletionProvider.cs (7)
47if (trigger.Kind is CompletionTriggerKind.Invoke or CompletionTriggerKind.InvokeAndCommitIfUnique) 52if (trigger.Kind == CompletionTriggerKind.Insertion) 88if (context.Trigger.Kind is not CompletionTriggerKind.Invoke and 89not CompletionTriggerKind.InvokeAndCommitIfUnique and 90not CompletionTriggerKind.Insertion) 197if (context.Trigger.Kind == CompletionTriggerKind.Insertion)
Microsoft.CodeAnalysis.CSharp.Features (7)
Completion\CompletionProviders\CSharpSuggestionModeCompletionProvider.cs (1)
34if (trigger.Kind != CompletionTriggerKind.Snippets)
Completion\CompletionProviders\EnumAndCompletionListTagCompletionProvider.cs (1)
136if (context.Trigger.Kind == CompletionTriggerKind.Insertion && s_triggerCharacters.Contains(context.Trigger.Character))
Completion\CompletionProviders\SymbolCompletionProvider.cs (2)
124if (completionContext.Trigger.Kind == CompletionTriggerKind.Insertion && 147if (trigger.Kind == CompletionTriggerKind.Insertion && caretPosition > 0)
Completion\CompletionProviders\XmlDocCommentCompletionProvider.cs (3)
113var wasTriggeredAfterSpace = trigger.Kind == CompletionTriggerKind.Insertion && trigger.Character == ' '; 126if (trigger.Kind == CompletionTriggerKind.Insertion && trigger.Character != '<') 132else if (trigger.Kind == CompletionTriggerKind.Deletion)
Microsoft.CodeAnalysis.EditorFeatures (11)
IntelliSense\AsyncCompletion\CompletionSource.cs (1)
390? new CompletionTrigger(CompletionTriggerKind.Snippets)
IntelliSense\AsyncCompletion\Helpers.cs (9)
68var completionTriggerKind = GetRoslynTriggerKind(trigger.Reason); 71case CompletionTriggerKind.Deletion: 86case CompletionTriggerKind.Insertion: 94public static CompletionTriggerKind GetRoslynTriggerKind(EditorAsyncCompletionData.CompletionTriggerReason triggerReason) 98EditorAsyncCompletionData.CompletionTriggerReason.InvokeAndCommitIfUnique => CompletionTriggerKind.InvokeAndCommitIfUnique, 99EditorAsyncCompletionData.CompletionTriggerReason.Insertion => CompletionTriggerKind.Insertion, 100EditorAsyncCompletionData.CompletionTriggerReason.Deletion or EditorAsyncCompletionData.CompletionTriggerReason.Backspace => CompletionTriggerKind.Deletion, 101EditorAsyncCompletionData.CompletionTriggerReason.SnippetsMode => CompletionTriggerKind.Snippets, 102_ => CompletionTriggerKind.Invoke,
IntelliSense\AsyncCompletion\ItemManager.CompletionListUpdater.cs (1)
244var roslynInitialTriggerKind = Helpers.GetRoslynTriggerKind(InitialTriggerReason);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
Completion\CompletionServiceTests.cs (3)
105CompletionTriggerKind.Invoke => true, 106CompletionTriggerKind.InvokeAndCommitIfUnique => true, 107CompletionTriggerKind.Insertion => trigger.Character == '"',
Microsoft.CodeAnalysis.Features (35)
Completion\CommonCompletionProvider.cs (1)
46=> trigger.Kind == CompletionTriggerKind.Insertion &&
Completion\CompletionService.cs (4)
142if (trigger.Kind is CompletionTriggerKind.Invoke or CompletionTriggerKind.InvokeAndCommitIfUnique) 149if (trigger.Kind == CompletionTriggerKind.Insertion && trigger.Character == '\n') 154if (trigger.Kind == CompletionTriggerKind.Deletion && SupportsTriggerOnDeletion(options))
Completion\CompletionService.ProviderManager.cs (1)
204if (trigger.Kind == CompletionTriggerKind.Snippets)
Completion\CompletionService_GetCompletions.cs (2)
134case CompletionTriggerKind.Insertion: 135case CompletionTriggerKind.Deletion:
Completion\CompletionTrigger.cs (6)
24public CompletionTriggerKind Kind { get; } 31internal CompletionTrigger(CompletionTriggerKind kind, char character = (char)0) 43new(CompletionTriggerKind.Other); 49new(CompletionTriggerKind.Invoke); 55=> new(CompletionTriggerKind.Insertion, insertedCharacter); 61=> new(CompletionTriggerKind.Deletion, deletedCharacter);
Completion\PatternMatchHelper.cs (6)
137CompletionTriggerKind initialTriggerKind, 201CompletionTriggerKind initialTriggerKind, 214initialTriggerKind == CompletionTriggerKind.Deletion) 239static bool KeepAllItemsInTheList(CompletionTriggerKind initialTriggerKind, string filterText) 242initialTriggerKind == CompletionTriggerKind.Invoke || 243initialTriggerKind == CompletionTriggerKind.Deletion;
Completion\Providers\AbstractRecommendationServiceBasedCompletionProvider.cs (1)
175completionContext.Trigger.Kind == CompletionTriggerKind.Insertion &&
Completion\Providers\AbstractSymbolCompletionProvider.cs (1)
263if (completionContext.Trigger.Kind == CompletionTriggerKind.Insertion)
EmbeddedLanguages\DateAndTime\DateAndTimeEmbeddedCompletionProvider.cs (6)
38if (trigger.Kind is CompletionTriggerKind.Invoke or 39CompletionTriggerKind.InvokeAndCommitIfUnique) 44if (trigger.Kind == CompletionTriggerKind.Insertion) 65if (context.Trigger.Kind is not CompletionTriggerKind.Invoke and 66not CompletionTriggerKind.InvokeAndCommitIfUnique and 67not CompletionTriggerKind.Insertion)
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexEmbeddedCompletionProvider.cs (7)
45if (trigger.Kind is CompletionTriggerKind.Invoke or 46CompletionTriggerKind.InvokeAndCommitIfUnique) 51if (trigger.Kind == CompletionTriggerKind.Insertion) 66if (context.Trigger.Kind is not CompletionTriggerKind.Invoke and 67not CompletionTriggerKind.InvokeAndCommitIfUnique and 68not CompletionTriggerKind.Insertion) 140if (context.Trigger.Kind == CompletionTriggerKind.Insertion)
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Handler\Completion\CompletionHandler.cs (2)
267CompletionTriggerKind.Insertion => CompletionFilterReason.Insertion, 268CompletionTriggerKind.Deletion => CompletionFilterReason.Deletion,
Microsoft.CodeAnalysis.VisualBasic.Features (2)
Completion\CompletionProviders\XmlDocCommentCompletionProvider.vb (2)
82trigger.Kind = CompletionTriggerKind.Deletion Then 131If trigger.Kind = CompletionTriggerKind.Insertion AndAlso