1 write to MatchPriority
Microsoft.CodeAnalysis.Features (1)
Completion\CompletionItemRules.cs (1)
91MatchPriority = matchPriority;
21 references to MatchPriority
Microsoft.CodeAnalysis.EditorFeatures (4)
IntelliSense\AsyncCompletion\ItemManager.CompletionListUpdater.cs (4)
576=> item.Rules.SelectionBehavior == CompletionItemSelectionBehavior.HardSelection ? item.Rules.MatchPriority : MatchPriority.Default; 798if (item.Rules.MatchPriority == MatchPriority.Default) 806Debug.Assert(_filterText.Length > 0 || item.Rules.MatchPriority != MatchPriority.Default); 841if (selectedItem.Rules.MatchPriority >= MatchPriority.Preselect)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Completion\AbstractCompletionProviderTests.cs (1)
220if (matchPriority.HasValue && c.Rules.MatchPriority != matchPriority.Value)
Microsoft.CodeAnalysis.Features (13)
Completion\CommonCompletionService.cs (1)
29if (existingItem.Rules.MatchPriority != MatchPriority.Default && IsSnippetItem(item))
Completion\CompletionHelper.cs (6)
192if (item1.Rules.MatchPriority == item2.Rules.MatchPriority) 205=> (item1.Rules.MatchPriority != MatchPriority.Preselect).CompareTo(item2.Rules.MatchPriority != MatchPriority.Preselect); 211=> (item1.Rules.MatchPriority == MatchPriority.Deprioritize).CompareTo(item2.Rules.MatchPriority == MatchPriority.Deprioritize);
Completion\CompletionItemRules.cs (4)
139matchPriority.GetValueOrDefault() == Default.MatchPriority && 184var newMatchPriority = matchPriority.HasValue ? matchPriority.Value : MatchPriority; 191newMatchPriority == MatchPriority && 236/// Creates a copy of this <see cref="CompletionItemRules"/> with the <see cref="MatchPriority"/> property changed.
Completion\PatternMatchHelper.cs (2)
157item.Rules.MatchPriority, 170item.Rules.MatchPriority,
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\Completion\CompletionResultFactory.cs (1)
139lspItem.Preselect = item.Rules.MatchPriority == MatchPriority.Preselect;
Microsoft.CodeAnalysis.VisualBasic.Features (2)
Completion\VisualBasicCompletionService.vb (2)
78If IsKeywordItem(existingItem) AndAlso existingItem.Rules.MatchPriority >= item.Rules.MatchPriority Then