1 write to Rules
Microsoft.CodeAnalysis.Features (1)
Completion\CompletionItem.cs (1)
197Rules = rules ?? CompletionItemRules.Default;
34 references to Rules
Microsoft.CodeAnalysis.EditorFeatures (11)
IntelliSense\AsyncCompletion\CommitManager.cs (3)
310if (roslynItem.Rules.FormatOnCommit) 355foreach (var rule in item.Rules.CommitCharacterRules) 386var rule = item.Rules.EnterKeyRule;
IntelliSense\AsyncCompletion\CompletionSource.cs (1)
580foreach (var rule in roslynItem.Rules.FilterCharacterRules)
IntelliSense\AsyncCompletion\Helpers.cs (1)
125foreach (var rule in item.Rules.FilterCharacterRules)
IntelliSense\AsyncCompletion\ItemManager.CompletionListUpdater.cs (6)
576=> item.Rules.SelectionBehavior == CompletionItemSelectionBehavior.HardSelection ? item.Rules.MatchPriority : MatchPriority.Default; 792if (item.Rules.SelectionBehavior != CompletionItemSelectionBehavior.HardSelection) 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)
258if (result.MatchPriority.HasValue && c.Rules.MatchPriority != result.MatchPriority.Value)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Completion\FileSystemCompletionHelperTests.cs (1)
24Assert.True(actual.All(i => i.Rules == TestFileSystemCompletionHelper.CompletionRules));
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\CompletionItem.cs (3)
365var newRules = rules.HasValue ? rules.Value : Rules; 377newRules == Rules && 493/// Creates a copy of this <see cref="CompletionItem"/> with the <see cref="Rules"/> property changed.
Completion\PatternMatchHelper.cs (2)
157item.Rules.MatchPriority, 170item.Rules.MatchPriority,
Completion\Providers\ImportCompletionProvider\ImportCompletionItem.cs (1)
113rules: attributeItem.Rules,
Microsoft.CodeAnalysis.LanguageServer.Protocol (6)
Handler\Completion\CompletionResultFactory.cs (6)
139lspItem.Preselect = item.Rules.MatchPriority == MatchPriority.Preselect; 155else if (typedText.Length == 0 && item.Rules.SelectionBehavior != CompletionItemSelectionBehavior.HardSelection) 232if (item.Rules.CommitCharacterRules.IsEmpty) 235if (!currentRuleCache.TryGetValue(item.Rules.CommitCharacterRules, out var cachedCommitCharacters)) 237cachedCommitCharacters = CreateCommitCharacterArrayFromRules(item.Rules); 238currentRuleCache.Add(item.Rules.CommitCharacterRules, cachedCommitCharacters);
Microsoft.CodeAnalysis.VisualBasic.Features (2)
Completion\VisualBasicCompletionService.vb (2)
78If IsKeywordItem(existingItem) AndAlso existingItem.Rules.MatchPriority >= item.Rules.MatchPriority Then