63 references to Default
Microsoft.AspNetCore.App.Analyzers (1)
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (1)
283
rules: CompletionItemRules.
Default
);
Microsoft.CodeAnalysis.CSharp.Features (22)
Completion\CompletionProviders\AttributeNamedParameterCompletionProvider.cs (2)
35
private static readonly CompletionItemRules _spaceItemFilterRule = CompletionItemRules.
Default
.WithFilterCharacterRule(
195
rules: CompletionItemRules.
Default
);
Completion\CompletionProviders\CrefCompletionProvider.cs (2)
367
return CompletionItemRules.
Default
;
371
return CompletionItemRules.
Default
.WithCommitCharacterRules(commitRules);
Completion\CompletionProviders\DeclarationName\DeclarationNameCompletionProvider.cs (2)
93
CSharpFeaturesResources.Name, displayTextSuffix: "", CompletionItemRules.
Default
);
106
CompletionItemRules.
Default
,
Completion\CompletionProviders\EnumAndCompletionListTagCompletionProvider.cs (3)
32
CompletionItemRules.
Default
.WithCommitCharacterRules([CharacterSetModificationRule.Create(CharacterSetModificationKind.Replace, '.')])
206
rules: CompletionItemRules.
Default
,
262
rules: CompletionItemRules.
Default
,
Completion\CompletionProviders\ExternAliasCompletionProvider.cs (1)
85
alias, displayTextSuffix: "", CompletionItemRules.
Default
, glyph: Glyph.Namespace));
Completion\CompletionProviders\FunctionPointerUnmanagedCallingConventionCompletionProvider.cs (1)
116
rules: CompletionItemRules.
Default
,
Completion\CompletionProviders\KeywordCompletionProvider.cs (2)
186
private static readonly CompletionItemRules s_tupleRules = CompletionItemRules.
Default
.
191
var rules = context.IsPossibleTupleContext ? s_tupleRules : CompletionItemRules.
Default
;
Completion\CompletionProviders\NamedParameterCompletionProvider.cs (1)
37
private static readonly CompletionItemRules s_rules = CompletionItemRules.
Default
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider_Conversions.cs (1)
38
private static readonly CompletionItemRules s_conversionRules = CompletionItemRules.
Default
.WithMatchPriority(MatchPriority.Deprioritize);
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider_Indexers.cs (1)
32
rules: CompletionItemRules.
Default
,
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider_Operators.cs (1)
96
s_operatorRules = CompletionItemRules.
Default
Completion\CompletionProviders\SnippetCompletionProvider.cs (1)
186
var rules = CompletionItemRules.
Default
.WithFormatOnCommit(service.ShouldFormatSnippet(snippet));
Completion\CompletionProviders\SpeculativeTCompletionProvider.cs (1)
55
T, displayTextSuffix: "", CompletionItemRules.
Default
, glyph: Glyph.TypeParameter));
Completion\CompletionProviders\SymbolCompletionProvider.cs (2)
52
var generalBaseline = CompletionItemRules.
Default
.
217
return rule ?? CompletionItemRules.
Default
;
Completion\CompletionProviders\TupleNameCompletionProvider.cs (1)
110
rules: CompletionItemRules.
Default
,
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
Completion\CompletionServiceTests.cs (1)
114
var completionItem = CompletionItem.Create(displayText: nameof(DebugAssertTestCompletionProvider), displayTextSuffix: "", rules: CompletionItemRules.
Default
);
Completion\GlobalAssemblyCacheCompletionHelperTests.cs (1)
44
var helper = new GlobalAssemblyCacheCompletionHelper(CompletionItemRules.
Default
);
Completion\TestFileSystemCompletionHelper.cs (1)
18
internal static readonly CompletionItemRules CompletionRules = CompletionItemRules.
Default
;
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
Interactive\AbstractInteractiveWindowCommandCompletionProvider.cs (1)
49
completion, displayTextSuffix: "", CompletionItemRules.
Default
, description: command.Description.ToSymbolDisplayParts(), glyph: Glyph.Intrinsic));
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (4)
IntelliSense\CSharpCompletionCommandHandlerTests.vb (3)
8221
rules:=CompletionItemRules.
Default
.WithMatchPriority(1000), isComplexTextEdit:=True))
9601
builder.Add(CompletionItem.Create(displayText:=item.displayText, rules:=CompletionItemRules.
Default
.WithMatchPriority(item.matchPriority)))
10268
Dim rules = CompletionItemRules.
Default
.WithSelectionBehavior(CompletionItemSelectionBehavior.HardSelection).WithMatchPriority(MatchPriority.Preselect)
IntelliSense\CSharpCompletionCommandHandlerTests_DefaultsSource.vb (1)
429
Dim rules = CompletionItemRules.
Default
.WithSelectionBehavior(CompletionItemSelectionBehavior.HardSelection).WithMatchPriority(MatchPriority.Preselect)
Microsoft.CodeAnalysis.Features (15)
Completion\CompletionItem.cs (1)
197
Rules = rules ?? CompletionItemRules.
Default
;
Completion\CompletionItemRules.cs (5)
137
enterKeyRule ==
Default
.EnterKeyRule &&
138
formatOnCommit ==
Default
.FormatOnCommit &&
139
matchPriority.GetValueOrDefault() ==
Default
.MatchPriority &&
140
selectionBehavior ==
Default
.SelectionBehavior)
142
return
Default
;
Completion\Providers\AbstractAwaitCompletionProvider.cs (1)
158
rules: CompletionItemRules.
Default
,
Completion\Providers\AbstractInternalsVisibleToCompletionProvider.cs (1)
158
rules: CompletionItemRules.
Default
,
Completion\Providers\AbstractPartialTypeCompletionProvider.cs (1)
72
rules: CompletionItemRules.
Default
);
Completion\Providers\AbstractPreprocessorCompletionProvider.cs (1)
47
CompletionItemRules.
Default
,
Completion\Providers\AbstractSymbolCompletionProvider.cs (1)
237
rules: CompletionItemRules.
Default
Completion\Providers\ImportCompletionProvider\ImportCompletionItem.cs (1)
79
rules: CompletionItemRules.
Default
,
Completion\Providers\Snippets\SnippetCompletionItem.cs (1)
38
rules: CompletionItemRules.
Default
)
EmbeddedLanguages\DateAndTime\DateAndTimeEmbeddedCompletionProvider.cs (1)
29
CompletionItemRules.
Default
.WithSelectionBehavior(CompletionItemSelectionBehavior.SoftSelection)
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexEmbeddedCompletionProvider.cs (1)
36
CompletionItemRules.
Default
.WithSelectionBehavior(CompletionItemSelectionBehavior.SoftSelection)
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\Completion\CompletionResultFactory.cs (1)
34
public static string[] DefaultCommitCharactersArray { get; } = CreateCommitCharacterArrayFromRules(CompletionItemRules.
Default
);
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (5)
Completion\CompletionFeaturesTests.cs (5)
396
mockService.NonDefaultRule = CompletionItemRules.
Default
.WithCommitCharacterRule(CharacterSetModificationRule.Create(CharacterSetModificationKind.Remove, ' ', '('));
443
mockService.NonDefaultRule = CompletionItemRules.
Default
.WithCommitCharacterRule(CharacterSetModificationRule.Create(CharacterSetModificationKind.Remove, ' ', '('));
589
public CompletionItemRules NonDefaultRule { get; set; } = CompletionItemRules.
Default
;
603
builder.Add(CodeAnalysis.Completion.CompletionItem.Create($"ItemWithDefaultChar{i}", rules: CompletionItemRules.
Default
));
770
mockService.NonDefaultRule = CompletionItemRules.
Default
.WithMatchPriority(MatchPriority.Preselect);
Microsoft.CodeAnalysis.VisualBasic.Features (10)
Completion\CompletionProviders\CompletionListTagCompletionProvider.vb (1)
111
rules:=CompletionItemRules.
Default
.WithMatchPriority(MatchPriority.Preselect),
Completion\CompletionProviders\CrefCompletionProvider.vb (2)
258
"Of", displayTextSuffix:="", CompletionItemRules.
Default
, Glyph.Keyword,
265
Private Shared ReadOnly s_defaultRules As CompletionItemRules = CompletionItemRules.
Default
Completion\CompletionProviders\EnumCompletionProvider.vb (2)
29
Private Shared ReadOnly s_enumMemberCompletionItemRules As CompletionItemRules = CompletionItemRules.
Default
.WithMatchPriority(MatchPriority.Preselect)
134
Dim rules = If(preselect, s_enumMemberCompletionItemRules, CompletionItemRules.
Default
)
Completion\CompletionProviders\KeywordCompletionProvider.vb (2)
183
Private Shared ReadOnly s_tupleRules As CompletionItemRules = CompletionItemRules.
Default
.
187
Dim rules = If(context.IsPossibleTupleContext, s_tupleRules, CompletionItemRules.
Default
)
Completion\CompletionProviders\NamedParameterCompletionProvider.vb (1)
106
Private Shared ReadOnly s_itemRules As CompletionItemRules = CompletionItemRules.
Default
.
Completion\CompletionProviders\SymbolCompletionProvider.vb (2)
37
Dim generalBaseline = CompletionItemRules.
Default
.
118
CompletionItemRules.
Default
)
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
Completion\MockCompletionProvider.vb (1)
16
Dim item = CommonCompletionItem.Create("DisplayText", "", rules:=CompletionItemRules.
Default
)