37 references to CompletionItemSelectionBehavior
Microsoft.AspNetCore.App.Analyzers (2)
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (1)
44selectionBehavior: CompletionItemSelectionBehavior.SoftSelection,
RouteEmbeddedLanguage\RoutePatternCompletionProvider.cs (1)
38selectionBehavior: CompletionItemSelectionBehavior.SoftSelection,
Microsoft.CodeAnalysis.CSharp.Features (7)
Completion\CompletionProviders\EnumAndCompletionListTagCompletionProvider.cs (1)
34.WithSelectionBehavior(CompletionItemSelectionBehavior.HardSelection);
Completion\CompletionProviders\ObjectCreationCompletionProvider.cs (3)
105selectionBehavior: CompletionItemSelectionBehavior.SoftSelection); 111selectionBehavior: CompletionItemSelectionBehavior.HardSelection); 117selectionBehavior: CompletionItemSelectionBehavior.HardSelection);
Completion\CompletionProviders\SymbolCompletionProvider.cs (3)
59rule = rule.WithSelectionBehavior(CompletionItemSelectionBehavior.HardSelection); 78protected override CompletionItemSelectionBehavior PreselectedItemSelectionBehavior => CompletionItemSelectionBehavior.HardSelection;
Microsoft.CodeAnalysis.EditorFeatures (2)
IntelliSense\AsyncCompletion\ItemManager.CompletionListUpdater.cs (2)
576=> item.Rules.SelectionBehavior == CompletionItemSelectionBehavior.HardSelection ? item.Rules.MatchPriority : MatchPriority.Default; 792if (item.Rules.SelectionBehavior != CompletionItemSelectionBehavior.HardSelection)
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (2)
IntelliSense\CSharpCompletionCommandHandlerTests.vb (1)
10268Dim rules = CompletionItemRules.Default.WithSelectionBehavior(CompletionItemSelectionBehavior.HardSelection).WithMatchPriority(MatchPriority.Preselect)
IntelliSense\CSharpCompletionCommandHandlerTests_DefaultsSource.vb (1)
429Dim rules = CompletionItemRules.Default.WithSelectionBehavior(CompletionItemSelectionBehavior.HardSelection).WithMatchPriority(MatchPriority.Preselect)
Microsoft.CodeAnalysis.Features (19)
Completion\CompletionItemRules.cs (9)
46selectionBehavior: CompletionItemSelectionBehavior.Default); 77public CompletionItemSelectionBehavior SelectionBehavior { get; } 85CompletionItemSelectionBehavior selectionBehavior) 114selectionBehavior: CompletionItemSelectionBehavior.Default); 133CompletionItemSelectionBehavior selectionBehavior = CompletionItemSelectionBehavior.Default) 178Optional<CompletionItemSelectionBehavior> selectionBehavior = default) 185var newSelectionBehavior = selectionBehavior.HasValue ? selectionBehavior.Value : SelectionBehavior; 244public CompletionItemRules WithSelectionBehavior(CompletionItemSelectionBehavior selectionBehavior)
Completion\Providers\AbstractObjectInitializerCompletionProvider.cs (1)
79rules = rules.WithSelectionBehavior(CompletionItemSelectionBehavior.HardSelection).WithMatchPriority(MatchPriority.Preselect);
Completion\Providers\AbstractRecommendationServiceBasedCompletionProvider.cs (3)
27protected abstract CompletionItemSelectionBehavior PreselectedItemSelectionBehavior { get; } 149rules = rules.WithSelectionBehavior(CompletionItemSelectionBehavior.SoftSelection); 153rules = rules.WithSelectionBehavior(CompletionItemSelectionBehavior.SoftSelection);
Completion\Providers\AbstractSymbolCompletionProvider.cs (2)
243.WithSelectionBehavior(context.IsRightSideOfNumericType ? CompletionItemSelectionBehavior.SoftSelection : CompletionItemSelectionBehavior.Default));
Completion\Providers\Scripting\AbstractLoadDirectiveCompletionProvider.cs (1)
20selectionBehavior: CompletionItemSelectionBehavior.HardSelection);
Completion\Providers\Scripting\AbstractReferenceDirectiveCompletionProvider.cs (1)
21selectionBehavior: CompletionItemSelectionBehavior.HardSelection);
EmbeddedLanguages\DateAndTime\DateAndTimeEmbeddedCompletionProvider.cs (1)
29CompletionItemRules.Default.WithSelectionBehavior(CompletionItemSelectionBehavior.SoftSelection)
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexEmbeddedCompletionProvider.cs (1)
36CompletionItemRules.Default.WithSelectionBehavior(CompletionItemSelectionBehavior.SoftSelection)
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\Completion\CompletionResultFactory.cs (1)
155else if (typedText.Length == 0 && item.Rules.SelectionBehavior != CompletionItemSelectionBehavior.HardSelection)
Microsoft.CodeAnalysis.VisualBasic.Features (4)
Completion\CompletionProviders\ObjectCreationCompletionProvider.vb (1)
63selectionBehavior:=CompletionItemSelectionBehavior.HardSelection)
Completion\CompletionProviders\SymbolCompletionProvider.vb (3)
47rule = rule.WithSelectionBehavior(CompletionItemSelectionBehavior.SoftSelection) 68Protected Overrides ReadOnly Property PreselectedItemSelectionBehavior As CompletionItemSelectionBehavior = CompletionItemSelectionBehavior.SoftSelection