2 instantiations of CompletionRules
Microsoft.CodeAnalysis.Features (2)
Completion\CompletionRules.cs (2)
88return new CompletionRules( 163public static readonly CompletionRules Default = new(
68 references to CompletionRules
Microsoft.CodeAnalysis.CSharp.Features (3)
Completion\CSharpCompletionService.cs (3)
31private CompletionRules _latestRules = CompletionRules.Default; 43internal override CompletionRules GetRules(CompletionOptions options)
Microsoft.CodeAnalysis.EditorFeatures (9)
IntelliSense\AsyncCompletion\CommitManager.cs (3)
193CompletionRules rules, 352internal static bool IsCommitCharacter(CompletionRules completionRules, CompletionItem item, char ch) 384internal static bool SendEnterThroughToEditor(CompletionRules rules, RoslynCompletionItem item, string textTypedSoFar)
IntelliSense\AsyncCompletion\CompletionSource.cs (1)
173ITextBuffer buffer, int caretPoint, SourceText text, LanguageServices services, CompletionRules rules)
IntelliSense\AsyncCompletion\ItemManager.CompletionListUpdater.cs (3)
50private readonly CompletionRules _completionRules; 97_completionRules = _completionService?.GetRules(globalOptions.GetCompletionOptions(_document.Project.Language)) ?? CompletionRules.Default; 115_completionRules = CompletionRules.Default;
Interactive\Completion\InteractiveCommandCompletionService.cs (2)
35internal override CompletionRules GetRules(CompletionOptions options) 36=> CompletionRules.Default;
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (6)
IntelliSense\CompletionServiceTests.vb (2)
61Friend Overrides Function GetRules(options As CompletionOptions) As CompletionRules 62Return CompletionRules.Default
IntelliSense\CompletionServiceTests_Exclusivitiy.vb (2)
67Friend Overrides Function GetRules(options As CompletionOptions) As CompletionRules 68Return CompletionRules.Default
IntelliSense\CSharpCompletionCommandHandlerTests_DefaultsSource.vb (2)
658Friend Overrides Function GetRules(options As CompletionOptions) As CompletionRules 659Return CompletionRules.Default
Microsoft.CodeAnalysis.ExternalAccess.FSharp (2)
Completion\FSharpCompletionServiceWithProviders.cs (2)
19internal sealed override CompletionRules GetRules(CompletionOptions options) 22internal abstract CompletionRules GetRulesImpl();
Microsoft.CodeAnalysis.Features (30)
Completion\CompletionList.cs (9)
58public CompletionRules Rules { get; } 77CompletionRules? rules, 85Rules = rules ?? CompletionRules.Default; 106CompletionRules? rules = null, 115CompletionRules? rules, 125Optional<CompletionRules> rules = default, 130var newRules = rules.HasValue ? rules.Value : Rules; 173public CompletionList WithRules(CompletionRules rules) 186default, [], CompletionRules.Default,
Completion\CompletionRules.cs (17)
57/// Creates a new <see cref="CompletionRules"/> instance. 63public static CompletionRules Create( 74/// Creates a new <see cref="CompletionRules"/> instance. 81public static CompletionRules Create( 96private CompletionRules With( 129/// Creates a copy of this <see cref="CompletionRules"/> with the <see cref="DismissIfEmpty"/> property changed. 131public CompletionRules WithDismissIfEmpty(bool dismissIfEmpty) 135/// Creates a copy of this <see cref="CompletionRules"/> with the <see cref="DismissIfLastCharacterDeleted"/> property changed. 137public CompletionRules WithDismissIfLastCharacterDeleted(bool dismissIfLastCharacterDeleted) 141/// Creates a copy of this <see cref="CompletionRules"/> with the <see cref="DefaultCommitCharacters"/> property changed. 143public CompletionRules WithDefaultCommitCharacters(ImmutableArray<char> defaultCommitCharacters) 147/// Creates a copy of this <see cref="CompletionRules"/> with the <see cref="DefaultEnterKeyRule"/> property changed. 149public CompletionRules WithDefaultEnterKeyRule(EnterKeyRule defaultEnterKeyRule) 153/// Creates a copy of the this <see cref="CompletionRules"/> with the <see cref="SnippetsRule"/> property changed. 155public CompletionRules WithSnippetsRule(SnippetsRule snippetsRule) 161/// The default <see cref="CompletionRules"/> if none is otherwise specified. 163public static readonly CompletionRules Default = new(
Completion\CompletionService.cs (2)
73public CompletionRules GetRules() 81internal abstract CompletionRules GetRules(CompletionOptions options);
ExternalAccess\VSTypeScript\Api\VSTypeScriptCompletionServiceWithProviders.cs (2)
23internal sealed override CompletionRules GetRules(CompletionOptions options) 26internal abstract CompletionRules GetRulesImpl();
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\Completion\CompletionResultFactory.cs (1)
405commitCharacters.AddAll(CompletionRules.Default.DefaultCommitCharacters);
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (12)
Completion\CompletionFeaturesTests.cs (7)
414var defaultCharArray = CompletionRules.Default.DefaultCommitCharacters.Select(c => c.ToString()).ToArray(); 462var defaultCharArray = CompletionRules.Default.DefaultCommitCharacters.Select(c => c.ToString()).ToArray(); 579internal override CompletionRules GetRules(CodeAnalysis.Completion.CompletionOptions options) 580=> CompletionRules.Default; 805var defaultCharArray = CompletionRules.Default.DefaultCommitCharacters.Select(c => c.ToString()).ToArray(); 872internal override CompletionRules GetRules(CodeAnalysis.Completion.CompletionOptions options) 873=> CompletionRules.Default;
Completion\CompletionResolveTests.cs (2)
514internal override CompletionRules GetRules(CodeAnalysis.Completion.CompletionOptions options) 515=> CompletionRules.Default;
Completion\CompletionTests.cs (3)
94request: completionParams, document: document, commitCharacters: CompletionRules.Default.DefaultCommitCharacters).ConfigureAwait(false); 145request: completionParams, document: document, commitCharacters: CompletionRules.Default.DefaultCommitCharacters).ConfigureAwait(false); 696completionParams, document, commitCharacters: CompletionRules.Default.DefaultCommitCharacters).ConfigureAwait(false);
Microsoft.CodeAnalysis.VisualBasic.Features (4)
Completion\VisualBasicCompletionService.vb (4)
37Private _latestRules As CompletionRules = CompletionRules.Create( 40defaultCommitCharacters:=CompletionRules.Default.DefaultCommitCharacters, 53Friend Overrides Function GetRules(options As CompletionOptions) As CompletionRules
Microsoft.VisualStudio.LanguageServices.Xaml (1)
Implementation\LanguageClient\XamlCapabilities.cs (1)
23AllCommitCharacters = RoslynCompletion.CompletionRules.Default.DefaultCommitCharacters.Select(c => c.ToString()).ToArray()