21 references to Default
Microsoft.CodeAnalysis.CSharp.Features (4)
Completion\CompletionProviders\ObjectCreationCompletionProvider.cs (1)
104
matchPriority: MatchPriority.
Default
,
Completion\KeywordRecommenders\AbstractSyntacticSingleKeywordRecommender.cs (1)
24
protected virtual int DefaultMatchPriority => MatchPriority.
Default
;
Completion\KeywordRecommenders\NuintKeywordRecommender.cs (1)
19
protected override RecommendedKeyword Keyword => new("nuint", matchPriority: MatchPriority.
Default
- 1);
Completion\KeywordRecommenders\UShortKeywordRecommender.cs (1)
26
protected override int DefaultMatchPriority => MatchPriority.
Default
- 1;
Microsoft.CodeAnalysis.EditorFeatures (3)
IntelliSense\AsyncCompletion\ItemManager.CompletionListUpdater.cs (3)
576
=> item.Rules.SelectionBehavior == CompletionItemSelectionBehavior.HardSelection ? item.Rules.MatchPriority : MatchPriority.
Default
;
798
if (item.Rules.MatchPriority == MatchPriority.
Default
)
806
Debug.Assert(_filterText.Length > 0 || item.Rules.MatchPriority != MatchPriority.
Default
);
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (5)
IntelliSense\CSharpCompletionCommandHandlerTests.vb (5)
9541
("item1", MatchPriority.
Default
- 1),
9542
("item2", MatchPriority.
Default
+ 1),
9543
("item3", MatchPriority.
Default
),
9574
("item2", MatchPriority.
Default
+ 1),
9575
("Item3", If(uppercaseItemIsDeprioritize, MatchPriority.Deprioritize, MatchPriority.
Default
- 1))})
Microsoft.CodeAnalysis.Features (7)
Completion\CommonCompletionService.cs (1)
29
if (existingItem.Rules.MatchPriority != MatchPriority.
Default
&& IsSnippetItem(item))
Completion\CompletionItemRules.cs (2)
45
matchPriority: Completion.MatchPriority.
Default
,
168
var matchPriority = preselect ? Completion.MatchPriority.Preselect : Completion.MatchPriority.
Default
;
Completion\PatternMatchHelper.cs (1)
223
if (recentItemIndex >= 0 || matchPriority > MatchPriority.
Default
)
Completion\Providers\AbstractRecommendationServiceBasedCompletionProvider.cs (1)
144
var matchPriority = preselect ? ComputeSymbolMatchPriority(symbols[0].Symbol) : MatchPriority.
Default
;
Completion\Providers\AbstractSymbolCompletionProvider.cs (1)
242
.WithMatchPriority(preselect ? MatchPriority.Preselect : MatchPriority.
Default
)
Completion\Providers\RecommendedKeyword.cs (1)
25
public int MatchPriority { get; } = matchPriority ?? Completion.MatchPriority.
Default
;
Microsoft.CodeAnalysis.VisualBasic.Features (2)
Completion\KeywordRecommenders\Expressions\MeKeywordRecommender.vb (1)
28
Dim priority = MatchPriority.
Default
Completion\KeywordRecommenders\Types\BuiltInTypesKeywordRecommender.vb (1)
113
Dim priority = If(inferredSpecialTypes.Contains(specialType), SymbolMatchPriority.Keyword, MatchPriority.
Default
)